伸缩布局

BRV对于伸缩布局的实现可以自行添加Google开源库 flexbox-layout

添加依赖

dependencies {
    implementation 'com.google.android:flexbox:3.0.0'
}

然后创建列表

rv.layoutManager = FlexboxLayoutManager(activity)

rv.setup {
    addType<FlexTagModel>(R.layout.item_flex_tag)
}.models = getData()