Building for Android TV — Episode 4
Sebastiano Gottardo
413

I have made it working for episode 2 by adding

setOnHeaderViewSelectedListener(new OnHeaderViewSelectedListener() {
 @Override
 public void onHeaderSelected(RowHeaderPresenter.ViewHolder viewHolder, Row row) {
 Object obj = ((ListRow) row).getAdapter().get(0);
 getFragmentManager().beginTransaction().replace(R.id.rows_container, (Fragment) obj).commit();
 }
 });

But with new library Sofa I have trouble making a similar UI in which each row (sub categories of a Category) to have a Header text.

Like what you read? Give Niphin M a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.