84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
如果要实现类似如下布局:
上一页/下一页分别显示之前和剩下的4*3数据。目前我是用RecyclerView模拟一个GridView来实现的,但觉得毕竟GridView像一个列表,可以滑动,体验会不太好。我还有一个想法就是用GridLayout,但我又觉得代码会好臃肿。。大家有什么好的建议吗??
RecyclerView
GridView
GridLayout
业精于勤,荒于嬉;行成于思,毁于随。
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.
Personally, I think your current choice is the right one. .
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.
Personally, I think your current choice is the right one. .