layout - android 布局选用问题
迷茫
迷茫 2017-04-17 15:39:52
0
5
267

如果要实现类似如下布局:

上一页/下一页分别显示之前和剩下的4*3数据。
目前我是用RecyclerView模拟一个GridView来实现的,但觉得毕竟GridView像一个列表,可以滑动,体验会不太好。
我还有一个想法就是用GridLayout,但我又觉得代码会好臃肿。。
大家有什么好的建议吗??

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(5)
Peter_Zhu

TableLayout

伊谢尔伦

ViewPager + GridView implementation

迷茫

For the left and right sliding style, you can use PageView, and for the up and down sliding style, it is more convenient to use RecyclerView.

阿神

RecyclerView can completely implement it. Just use TextView for the previous/next step, and use adapter.scrollToPosition() to control page turning.

Ty80

Personally, I think your current choice is the right one. .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!