简体   繁体   English

Leanback-如何创建镶嵌视图?

[英]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. 我查看了leanback提供的示例,RowFragment / Vertical行片段经过严格设计,可以在一行和一列中显示一项。 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. 如果没有,我希望可以从一些起始点开始并构建这种布局。

使用来实现网格并将新的Fragment与PageListRowFragment集成在一起

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM