The leanback support library for Android TV projects seems like a good effort to standardize TV experiences. However, I find it a bit too rigid and restricts customization beyond minor ones like color schemes, etc.
My question: what is the best, most efficient way to customize screens such as the DetailsFragment without rewriting the key parts of the leanback framework?
Background Information
The default detail screen looks like this: 
Some things I would like to be able to do:
What I've Tried
Extend DetailsOverViewRowPresenter to be able to inflate a custom XML file that defines the additional views. Unfortunately, this class hides its key initializer method, createRowViewHolder->private initDetailsOverview(ViewHolder vh), so I would have to duplicate such hidden yet key methods, which to me defeats the point of subclassing. Is there a better way than to recreate such code?
NOTE: this approach might be similar to one posted in this related question but OP didn't go into further detail.
I ended up not implementing the details screen. But it looks like the updated leanback library now supports some level of customization. The google-samples leanback project on github is a decent starting place. For example: VideoDetailsFragment subclasses the DetailsFragment.
Additionally, other customization possibilities discussed in this medium post are worth noting
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