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
Post a Comment