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.
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
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
Thanks for your answer. I tried the Gesture Detector library but its sample was not implemented based on B4xPages and also it only gave the swipe coordinates. I don't know how to use it to perform exactly like Telegram.