我正在开始一个新的应用程序,我愿意使用 Dashboard pattern .
例如:Google IO app使用它:
我的问题是按钮的数量会超过六个。 我不确定我应该使用垂直滚动还是水平滚动。
垂直滚动可以使用 ScrollView
或 GridView
来完成,但我不确定哪种方式更容易实现水平滚动。
我正在考虑使用 HorizontalScrollView
但它没有分页功能。它应该与 tweetdeck 应用程序相似。
你会如何实现它?
最佳答案
My issue is that the amount of buttons will be more than six. I'm not sure if I should use vertical or horizontal scrolling.
恕我直言,两者都不做。减少按钮的数量。观看关于此设计模式的 2010 年 Google I|O 演示——仪表板背后的要点是仅显示几个项目。
关于android - 仪表板模式 : HorizontalScrollView with pagination or ScrollView?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4628402/