b4x-de Active Member Licensed User Longtime User Nov 25, 2020 #1 Hi, Is there any way to set the current page without a animated transition or scroll effect? I did not find any option in iTabStrip. But the source code of XLPagerTabStrip looks like there is in PagerTabStripViewController an option to enable or disable the animation when current page is set: Swift: Copy open func moveToViewController(at index: Int, animated: Bool = true) Is there any way to access this operation and set animated to false via native object or inline code? Thanks, Thomas
Hi, Is there any way to set the current page without a animated transition or scroll effect? I did not find any option in iTabStrip. But the source code of XLPagerTabStrip looks like there is in PagerTabStripViewController an option to enable or disable the animation when current page is set: Swift: Copy open func moveToViewController(at index: Int, animated: Bool = true) Is there any way to access this operation and set animated to false via native object or inline code? Thanks, Thomas
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2020 #2 Code: Copy Sub ChangePageNoAnimation (Index as Int) Dim no As NativeObject = TabStrip1 no.RunMethod("moveToViewControllerAtIndex:animated:", Array(Index, False)) End Sub Note that the PageSelected event will not be raised. Upvote 0
Code: Copy Sub ChangePageNoAnimation (Index as Int) Dim no As NativeObject = TabStrip1 no.RunMethod("moveToViewControllerAtIndex:animated:", Array(Index, False)) End Sub Note that the PageSelected event will not be raised.