I currently have views arranged horizontally in the ViewPager, and they can cycle through them using the PagerAdapter. Currently, to complete the action that I would like to do when scrolling, I need to double-click on the View page. I could send the code, but it is somewhat difficult to extract the necessary fragments ...
I would like it to be able to vertically move around these views, translate them vertically, scroll and disappear, and then perform an action when they reach a certain distance from the edge of the device.
To understand what I think, in the Gallery application you can pinch an open photo to reduce it and open a horizontal view of the filmstrip. From there, you can scroll (or down) on a photo / video to delete it. For those who do not have the same Gallery application, this is exactly the same as closing iOS applications.
I tried to scan, although the source code for the Gallery application, but no luck finding the right activity.
android android-fragments android-viewpager fragmentpageradapter swipe-gesture
cricket_007
source share