I need to implement a gallery of clickable images that can be scrolled horizontally, and the Gallery widget is deprecated. What is the best replacement?
Please Note: The Gallery mobile applications for Android and iOS will be turned down on August 12, 2021. Gallery.io and the Gallery Sketch plugin will continue to be fully supported. Starting August 12, 2021 you will not be able to use, install, or update the Gallery mobile apps for Android or iOS.
Mostly, when it comes down to which app you should use, the answer for most people is pretty clear: both. Use the automatic backup in Photos, and maybe the editing if your Gallery doesn't have any, but use Gallery for your on-device photo sorting and searching.
You can use ImageView
which will scroll in horizontally on swipe.For the swipe you can use onFling()
method where you can handle left and right swipe.Read this post for gesture detection. Good luck
You may want to use a custom horizontal listview (by Paul Soucy from dev-smart.com) https://github.com/vieux/Android-Horizontal-ListView
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With