开发者

android viewPager implementation [closed]

开发者 https://www.devze.com 2023-04-01 19:06 出处:网络
I开发者_开发百科t's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.
I开发者_开发百科t's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

My Task is to make clean scroll right to another screen then press on icon and show popup, I want to use ViewPager to make clean scroll right(swipe) between two pages, and then use Dialog to show the popup, I couldn't find any working sample on how to implement ViewPager between two layouts, someone has working sample??

Thanks. David


This helped me a lot: http://geekyouup.blogspot.com/2011/07/viewpager-example-from-paug.html

Theres a link to some googlecode you can download and paw through too.

Viewpagers work like list views. To use it with two layouts you're going to have to expand the layouts in a LayoutInflater and add as a view to each page.

0

精彩评论

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