【发布时间】:2017-01-18 15:41:00
【问题描述】:
我正在尝试使用完成以下行为的 GridLayoutManager 实现 RecyclerView:
-------------
| |
| |
-------------
| | |
| | |
-------------
| | |
| | |
-------------
| | |
| | |
-------------
| | |
| | |
-------------
想法是第一项总是占据整行,然后接下来的行被分成3个空间,有2个项目,一个项目的权重为2,另一个项目的权重为1(类似于LinearLayout )。
我怎样才能完成这样的行为?
【问题讨论】:
-
通过实现自己的
RecyclerView.LayoutManager
标签: java android android-layout android-recyclerview