Search code examples
android-tvleanback

Browse fragment customisation


I want to customize a BrowseFragment.

Normally, a BrowseFragment is composed of multiple rows (header + items).

My question : Is it possible to have, for a same row (highlighted in blue), differents item types ? (see image below).

enter image description here

Thanks.


Solution

  • You might want to try using Presenter to implement customization of the header views in a more complex layout. And as mentioned in Creating a Catalog Browser, also with the use of adapters and presenters, the BrowseFragment class allows you to define and display browsable media content categories and media items from a media catalog.

    For better understanding and more samples, you may want to also check these tutorials:

    Hope that helps!