Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Android ViewPager? [duplicate]

Possible Duplicate:
android viewPager implementation

Can someone please tell me how I can properly implement ViewPager into my project? I need to know what I can achieve by using it? I am somewhat new to programming and android. Basically I need to use horizontal paging for an app on which I am working on right now.

I need step by step instruction guide for this.

like image 988
Steven Avatar asked Jul 25 '12 05:07

Steven


2 Answers

Try this site - Page swiping using ViewPager

This will help you to implement view pager step by step.

ViewPager Example

like image 72
AkashG Avatar answered Oct 14 '22 12:10

AkashG


It's done automatically with the new ADT 20, you just need to choose "tabs+swipe" in the right section when you create a new Android application. Then you'll just have to create fragments, like the Dummy one they gave you for example.

like image 45
Tsunaze Avatar answered Oct 14 '22 13:10

Tsunaze