M Mike1970 Well-Known Member Licensed User Longtime User May 12, 2019 #1 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) There is a way to disable the swiping gesture, or to avoid the animation?
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) There is a way to disable the swiping gesture, or to avoid the animation?
Erel B4X founder Staff member Licensed User Longtime User May 12, 2019 #2 You cannot disable the gesture. You can remove the over scoll effect: Code: Dim jo As JavaObject = TabStrip1 jo.GetFieldJO("vp").RunMethod("setOverScrollMode", Array(2)) 'NEVER Upvote 0
You cannot disable the gesture. You can remove the over scoll effect: Code: Dim jo As JavaObject = TabStrip1 jo.GetFieldJO("vp").RunMethod("setOverScrollMode", Array(2)) 'NEVER
M Mike1970 Well-Known Member Licensed User Longtime User May 12, 2019 #3 Erel said: You cannot disable the gesture. You can remove the over scoll effect: Code: Dim jo As JavaObject = TabStrip1 jo.GetFieldJO("vp").RunMethod("setOverScrollMode", Array(2)) 'NEVER Click to expand... It worked beautyfully Upvote 0
Erel said: You cannot disable the gesture. You can remove the over scoll effect: Code: Dim jo As JavaObject = TabStrip1 jo.GetFieldJO("vp").RunMethod("setOverScrollMode", Array(2)) 'NEVER Click to expand... It worked beautyfully