In my TV App, I need to implement the fixed Header in BrowseFragment like Youtube App. Below I have attached the screenshot how I want.
I'm implemented purely with Lean Back, my fragment is extended with browsefragment and I'm able to add icon and text to my header item.
Like below link they explained:
https://corochann.com/browsefragment-header-customization-android-tv-application-hands-on-tutorial-17-697.html
when focus moves to the right side, my header is collapsing fully. In my case, I want to collapse the header into little and need to show only icons in the header.
Install APKs from an Android phone or tablet First, you'll need to install the "Send files to TV" app from the Play Store on both your phone and TV. To install it on your TV, open the Play Store and search for the name, or click the above link on a desktop computer and set your TV as the installation target.
This type of functionality is not supported in Leanback. And I too searched the solution for it everywhere but didn't find anything useful. So I ended up writing a Fragment that behaves like the sidebar navigation and works with RowsSupportFragment through an interface for exchanging KeyPad Events.
When in Expanded State -> Menu Icon & Menu Names are shown.
When in Collapsed State -> Menu Icons are shown.
Check out this Repository
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