0

I want to scroll between views. Actually, I don't know what to use: HorizontalScrollView or Activities?

I want to slide between my layouts:

enter image description here

Am I need to implement GestureListener?

The problem with HorizontalScrollView is that I can't have more than 1 child.

Zbarcea Christian
  • 9,367
  • 22
  • 84
  • 137
  • http://stackoverflow.com/questions/11483567/how-to-make-right-or-left-or-left-to-right-transition-between-activities-on-slid – chancea Jul 22 '13 at 18:55

2 Answers2

3

Sounds like you're looking for a ViewPager, here's a description of them and a video of how it works - http://developer.android.com/training/animation/screen-slide.html

You'll have to use Fragments rather than Activities and if you want to do them on older versions of Android you'll need to use the support library.

Kasra Rahjerdi
  • 2,483
  • 26
  • 42
1

you are looking for ViewPager, also have a look at this library

Rupesh
  • 3,415
  • 2
  • 26
  • 30