开发者

How to make a scrollable view? (Samsung Galaxy S menu, Angry Birds Seasons level menu)

开发者 https://www.devze.com 2023-01-30 13:05 出处:网络
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 l

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 ImageButtons
embed the ScrollView in your layout, use the necessary attributes to make the background transparent and hide the scrollbar. bada-bing bada-boom

0

精彩评论

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