Android Question Disable TabStripViewPager Gesture (or Android animation)

Mike1970

Well-Known Member
Licensed User
Hi, i'm using TabStripViewPager to show different layouts, but i want to use buttons to go through the pages.
I tried to uncheck the option "Enabled" in the designer but it's still possibile to swipe to change page.
And i also tried to put an invisible panel on the TabStrip but nothing changed

(the reason why i want to use button is because of the android-effect when you reach the last (or first page in backwards) and there is the gray animation showing from the side)

Inkedfsdfs_LI-min.jpg

There is a way to disable the swiping gesture, or to avoid the animation?
 

Mike1970

Well-Known Member
Licensed User
You cannot disable the gesture. You can remove the over scoll effect:
B4X:
Dim jo As JavaObject = TabStrip1
jo.GetFieldJO("vp").RunMethod("setOverScrollMode", Array(2)) 'NEVER
It worked beautyfully :D
 
Top