Android Question Swipe to Close Page

Hi, I want to implement in B4XPages (B4A) a gesture where, when the user swipes from the left edge to the right, the current page moves dynamically following the finger, revealing the previous page behind it. If the swipe passes a certain distance, the current page should close with an animation; otherwise, it should return to its original position — exactly like the swipe-back effect in Telegram chats.
 

epiCode

Active Member
Licensed User
You can achieve that using
1. sliding layouts (multiple b4a libraries are available each with its own merit)
2. use horizontal CLV with snap feature
3. viewpager (ahviewpager, as viewpager)
4. flowmenu
 
Upvote 0
You can achieve that using
1. sliding layouts (multiple b4a libraries are available each with its own merit)
2. use horizontal CLV with snap feature
3. viewpager (ahviewpager, as viewpager)
4. flowmenu
I don't want to use non-standard or non-optimal methods, and more importantly, the solution must be fully compatible with b4xPages.
 
Upvote 0
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…