Skip to content Skip to sidebar Skip to footer

Viewpager Indicator With Images Selected From Gallery

Currenlty I am working in a project where I have to select multiple images from gallery and have to display all selected images as a swipeable view(viewpager indicator). I have gon

Solution 1:

Use ViewPager with FragmentStatePagerAdapter if you have more data to show or FragmentPagerAdapter.

You can read here about the difference between these two and when to use it.

Difference between FragmentPagerAdapter and FragmentStatePagerAdapter

Use CircularPageIndicator for images indication.

Now coming back to your question, you want to show the selected data or say images, you can pass these images to the viewPager adapter and it will takes care of it.

Read here, about how to use FragmentStatePagerAdapter with ViewPager.

https://guides.codepath.com/android/ViewPager-with-FragmentPagerAdapter

Post a Comment for "Viewpager Indicator With Images Selected From Gallery"