2

I have to create a screen in which multiple images will be scrolling (automatically) from right to left with following features:

I have to create a layout like this image:

enter image description here

  • Small circles will be scrolling automatically like marquee.
  • When Image would reach at center, image will be zoom by 20% than other image.
  • Images would be click able, so that an operation could be performed after click.

What I have done so far:

I have used ViewPager but neither images are not scrolling automatically nor center image is zooming.

Please suggest or give some example.

Ashish Tiwari
  • 2,168
  • 4
  • 30
  • 54

2 Answers2

0

I've done some research on this, and found that basically Android ViewPager does not support such functionality. This requires you to create your own custom ViewPager.

For the scrolling, circular ViewPager, I suggest you to use InfiniteViewPager. For the adapter, you can try looking at here.

This is some alternative, but I prefer InfiniteViewPager.

Community
  • 1
  • 1
Harry
  • 568
  • 1
  • 5
  • 20
0

You can achieve this using a CarouselView. There are several libraries available for it. You can try this one. https://github.com/clkasd/CarouselViewProject. To change the current item automatically, you can use setCurrentItem function with a timer.

Jossy Paul
  • 1,267
  • 14
  • 26