Building for Android TV — Episode 4
Sebastiano Gottardo

I have made it working for episode 2 by adding

setOnHeaderViewSelectedListener(new OnHeaderViewSelectedListener() {
 public void onHeaderSelected(RowHeaderPresenter.ViewHolder viewHolder, Row row) {
 Object obj = ((ListRow) row).getAdapter().get(0);
 getFragmentManager().beginTransaction().replace(, (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.