I was wondering how can I replicate the sideways gallery like the facebook mobile app but being able to scroll down the feed anytime I want.
I was thinking about "listening" for side-swypes and replacing the current ImageView but that doesn't sound like an elegant solution.
I searched for awhile and didn't find any library worth using
Is there any library or do you have any idea how to do it?
You could use the ViewPager
component. Reference: http://developer.android.com/reference/android/support/v4/view/ViewPager.html
Here are some tutorial that can help you get started:
1) http://androidtrainningcenter.blogspot.sg/2012/10/viewpager-example-in-android.html
2) http://manishkpr.webheavens.com/android-viewpager-as-image-slide-gallery-swipe-gallery/
Take a look at: similar question !
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.