I am working on an android TV app and I am using the leanback library.
I want to customize the app layout "BrowseFragment". I want to remove the header view and only display the card list "rows".
Is it possible to do that or is there any other solution to achieve that?
I want to remove that
The above call actually needs to be in the OnCreate method instead of OnActivityCreated.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setHeadersState(HEADERS_DISABLED);
}
You have to set the HeaderState like this:
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
setHeadersState(HEADERS_DISABLED); // Add this line
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With