0

I want to make a movement between my activity when I swipe the page. While I swipe the page, the pages have to come with my hand movement.

I have detected the swipe direction using SimpleOnGestureListener and changed the activity on intent. But i'm not getting exactly what I want. I need that effect.

Daniel Hedberg
  • 5,347
  • 4
  • 33
  • 56
Coder
  • 111
  • 3
  • 9
  • You can use ViewFlippers.. Refer this..[http://stackoverflow.com/a/8908962/1542636][1] [1]: http://stackoverflow.com/a/8908962/1542636 – GK_ Jan 13 '13 at 13:33
  • Thanx ganesh..i think it'll work ..Now i'll try this now.. – Coder Jan 13 '13 at 13:36

2 Answers2

0

you can implement left to right slide animation like one described here. Android Left to Right slide animation

Community
  • 1
  • 1
Meghal Shah
  • 405
  • 2
  • 10
  • Thanx meghal..I already tried this .. Its just an transition from left to right when intent calls..But i not expecting this result, – Coder Jan 13 '13 at 13:35
  • Ohh, if you want to have your screen to move along with your touch, you can use viewpagers – Meghal Shah Jan 13 '13 at 13:41
0

While I swipe the page, the pages have to come with my hand movement.

That's a ViewPager, then you use PagerAdapter or FragmentPagerAdapter or FragmentStatePagerAdapter (depending on specific needs, read the doc) to provide the content of each "page".

Budius
  • 37,587
  • 15
  • 92
  • 134