RecyclerView

时间:2016-09-29 12:47:09

标签: java android android-recyclerview gridlayoutmanager staggeredgridlayout

1 个答案:

答案 0 :(得分:2)

我建议您使用FlexBoxLayout。它与CSS的... LEFT JOIN t3 ON t1.CareID = t3.CareID AND t1.Username = t3.Username AND t1.Date <= t3.Date GROUP BY t1.ID, t1.Date, t2.Type, t1.Username ... 类似,完全符合您的需求。

只需向Gradle添加依赖:

FlexBox

将布局放在.xml文件中:

dependencies {
    compile 'com.google.android:flexbox:0.2.3'
}

并动态添加视图的子项:

<com.google.android.flexbox.FlexboxLayout/>