Maha
Maha

Reputation: 459

Swipe between Activities by touch in android

how can i let user swipe between pages by touch in android i am using android 2.1

i found this Link but i am not sure ViewPager works with 2.1 ViewPager

so i found Viewflipper and ViewSwitcher.is it doing the same thing as Viewpager?

Thanks in advance

Upvotes: 1

Views: 1284

Answers (2)

Sreedev
Sreedev

Reputation: 6653

I think you will get an idea from these links.For swiping a page left and right the best way will be using a customized view.

http://mobile.tutsplus.com/tutorials/android/android-user-interface-design-horizontal-view-paging/

https://github.com/grantland/android-horizontalpager

http://savagelook.com/blog/android/swipes-or-flings-for-navigation-in-android

http://blog.sephiroth.it/2011/04/04/imageview-zoom-and-scroll/

Horizondalpager is the best option.Hope this will help you to get there :-)

Upvotes: 1

Kuffs
Kuffs

Reputation: 35661

Viewpager is the one you want to use and does work with 2.1 (It is part of the backwards compatible support library)

Viewflipper does not allow you to swipe. It simply switches one view with another on demand.

Upvotes: 0

Related Questions