2

In Android TV leanback, how to always show the headers which are to the left of the screen in BrowseFragment even when an item in any row is selected?

Currently when an item in a row is focused on, the side bar containing the headers is hidden. I want the side bar to always be shown.

Sample of side bar

The side bar in blue in the above picture will always be visible.

khateeb
  • 5,265
  • 15
  • 58
  • 114

2 Answers2

0

Please override the following method into RowFragment and set true in setExpand method. Hopefully, it will be worked

 @Override
    public void setExpand(boolean expand) {
        super.setExpand(true);
    }
0

You can override startHeadersTransition. Just return inside this method to prevent any headers transition.

mahdi
  • 598
  • 5
  • 22