How to make a scrollable view? (Samsung Galaxy S menu, Angry Birds Seasons level menu)
How is this mechanism realized, I 开发者_Go百科mean, having some layouts and changing them when user scrolls the screen? I need it to look like the Samsung Galaxy S main menu, or Angry Birds Seasons level menu. Thanks in advance.
Do you mean being able to swipe between different pages of content? If so you can do this using a ViewFlipper and a GestureDetector.
Or if you just mean making a single page of content scrollable you can use a ScrollView.
what you need is the android build in widget named Gallery. Populate the gallery with 3 views and each view with a gridview and there you have it
I would say its just a glorified ScrollView
containing ImageButton
s
embed the ScrollView
in your layout, use the necessary attributes to make the background transparent and hide the scrollbar. bada-bing bada-boom
精彩评论