-1

Hello first of all i am a newbie, and Like we achieve transition in the fragments with the help of View pager and an adapter how can we achieve transition within an activity, i mean how can i setup a horizontal row of images and swipe them,for the next or previous image to appear? i want 3-5(out of many) images visible at the same time and one of them should be centered,i don't want the code.... just i don't know what should i be looking for?

Ankit Srivastava
  • 280
  • 2
  • 7
  • 24

1 Answers1

2

If I understood correctly, you want something like an image gallery pager. You can check Jake Wharthon's ViewPagerIndicator which I am also using that you can customise the ui according to your images. You can also try checking GalleryViewPager for a gallery with zoom functionality.

Here is another stackoverflow topic with many examples that you can try: Android Viewpager as Image Slide Gallery

updated answer 1: TwoWayGridView the image you posted in a scrollable GridView so you can use this library with horizontal swiping.

updated answer 2: Use this HorizontalScrollView example and implement rotation animation for images except the one in the center by overriding some functions inside. I don't know of a ready code which does this kind of animated view as you wanted so this is the first thing I am thought how to do it.

Community
  • 1
  • 1
canova
  • 3,965
  • 2
  • 22
  • 39