Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android viewPager implementation [closed]

Tags:

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

like image 375
BoazGarty Avatar asked Aug 30 '11 14:08

BoazGarty


1 Answers

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.

like image 193
Thomas Clayson Avatar answered Sep 24 '22 06:09

Thomas Clayson