首页 > 解决方案 > 我为什么要利用这个设计?

问题描述

我用fragments什么views

在此处输入图像描述

标签: androidandroid-layoutandroid-fragmentsdesign-patternsmaterial-design

解决方案


您可以将 RecyclerView 与LinearLayoutManager.HORIZONTALSection 一起使用。如果您的 Sections 是变量,那么您应该使用嵌套的 RecyclerView 父 RecyclerView 将是LinearLayoutManager.VERTICAL& Childs 将是LinearLayoutManager.HORIZONTAL

看看这个


推荐阅读