search

Home  >  Q&A  >  body text

layout - android 布局选用问题

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

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

迷茫迷茫2767 days ago271

reply all(5)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 15:41:52

    TableLayout

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 15:41:52

    ViewPager + GridView implementation

    reply
    0
  • 迷茫

    迷茫2017-04-17 15:41:52

    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.

    reply
    0
  • 阿神

    阿神2017-04-17 15:41:52

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

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:41:52

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

    reply
    0
  • Cancelreply