문제

How is this mechanism realized, I 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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top