[英]Android grid view scrolling
I want to implement a grid view with a lot of icons with scrolling.我想实现一个带有很多滚动图标的网格视图。
I have done that part now I want to implement the scrolling in such a way that firstly my screen shows first 6 icons and when I scroll it shows the next 6 icons (ie the previous icons should not be visible).我现在已经完成了那部分,我想以这样的方式实现滚动,首先我的屏幕显示前 6 个图标,当我滚动它时显示接下来的 6 个图标(即以前的图标不应该是可见的)。 In short want my grid view to look like the Android home screen menu grid.简而言之,希望我的网格视图看起来像 Android 主屏幕菜单网格。
Ok.好的。 Now i understand.现在我明白了。
I think you could use a viewflipper
that contains all your gridviews
.我认为您可以使用包含所有gridviews
的viewflipper
。 The viewflipper
could go through the different gridviews
on a flick, for instance.例如, viewflipper
可以通过轻弹上的不同网格视图gridviews
。
However, i would be conscious of how many gridviews
you are adding.但是,我会意识到您要添加多少gridviews
。 I am not familiar with how the viewflipper
inflates views.我不熟悉viewflipper
如何膨胀视图。 In the worst case, you'll be inflating all the gridviews
at once.在最坏的情况下,您将一次膨胀所有的gridviews
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.