下面有图,这是一个app的首页效果图,每张图是连续的,本人最近项目需求也相似这个,本人琢磨了一下不知道怎么样布局才好,希望有这方面经验的高手点播一下,谢谢了。
本人说明一下本人的疑问:
这样的布局是用scrollview还是使用RecyclerView,首先观察到首页可以无限下拉刷新,而且滚动的时候滚动条长度会不断变化所以推测是RecyclerView,但是上面使用的是网格布局,到后面又变成了瀑布流,而且中间有些地方是2列有些是3列,这个应该怎么实现呢





本人说明一下本人的疑问:
这样的布局是用scrollview还是使用RecyclerView,首先观察到首页可以无限下拉刷新,而且滚动的时候滚动条长度会不断变化所以推测是RecyclerView,但是上面使用的是网格布局,到后面又变成了瀑布流,而且中间有些地方是2列有些是3列,这个应该怎么实现呢





解决方案
10
根据 不同的type。来写。
10
这个就是RecyclerView,用多就会了,嵌套一些view
10
就是用RecyclerView,每种类型是一种布局
10
这个布局 嵌套就行 多注意一下,本人嵌套一下就可以了、