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.