androidandroid-tvleanbackbrowsefragment

Leanback - How to create Mosaic View?


Since there are not many customized view tutorials online, I am asking this question here. I want to create a mosaic view just like apple photo stream. I looked at the samples provided by leanback the RowFragment/Vertical row fragment are tightly designed to show one item in one row and one column. My goal is to be able provide a span size to some items to more than one row and column (same as that of the link added above). I wanted to know if someone has done such work and can provide some sample code to learn from. If not, I want some starter points from where I can start and build such layout.


Solution

  • Use this to implement the grid and integrate a new Fragment with the PageListRowFragment