android viewPager implementation [closed]

匿名 (未验证) 提交于 2019-12-03 02:06:01

问题:

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

回答1:

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.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!