开发者

Android grid view scrolling

开发者 https://www.devze.com 2023-03-28 16:07 出处:网络
I want to implemen开发者_C百科t 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 an

I want to implemen开发者_C百科t 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 (i.e the previous icons should not be visible). In short want my grid view to look like the Android home screen menu grid.


Ok. Now i understand.

I think you could use a viewflipper that contains all your gridviews. The viewflipper could go through the different gridviews on a flick, for instance.

However, i would be conscious of how many gridviews you are adding. I am not familiar with how the viewflipper inflates views. In the worst case, you'll be inflating all the gridviews at once.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号