Android image slider -


i want create image slider in application. slider contain around 6 images , user can swipe through them. if user not interact swipe on own in time interval.. want create 3 of such sliders in single fragment.

what's best approach such design? 3 independent sliders. , of course have use less memory possible..

is there library should use.. please suggest optimized approach.

thank

you can use viewpager views rather fragments.

check out tutorial on how use viewpager views: https://www.bignerdranch.com/blog/viewpager-without-fragments/

to scroll automatically use timer , call:

viewpager.setcurrentitem(1) 

where 1 second item etc...


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -