K Keith Yong Active Member Licensed User Longtime User Apr 21, 2016 #1 Understand that there is a option to set the scrolllview with paging function, but how do i show the page indicator like below?
Understand that there is a option to set the scrolllview with paging function, but how do i show the page indicator like below?
Erel B4X founder Staff member Licensed User Longtime User Apr 22, 2016 #2 See the attached example: It uses NativeObject to create a UIPageControl. Attachments PageControl.zip PageControl.zip 3.3 KB · Views: 1,403 Upvote 0
K Keith Yong Active Member Licensed User Longtime User Apr 22, 2016 #3 Erel said: See the attached example: View attachment 43435 It uses NativeObject to create a UIPageControl. Click to expand... Thanks Erel!, by the way, does it support click event for the indicator? like when I click on the last dot, it will ScrollTo Offset X Upvote 0
Erel said: See the attached example: View attachment 43435 It uses NativeObject to create a UIPageControl. Click to expand... Thanks Erel!, by the way, does it support click event for the indicator? like when I click on the last dot, it will ScrollTo Offset X
Erel B4X founder Staff member Licensed User Longtime User Apr 22, 2016 #4 No (this is why the code disables noPageControl). Upvote 0
K Keith Yong Active Member Licensed User Longtime User Apr 22, 2016 #5 Erel said: No (this is why the code disables noPageControl). Click to expand... Ic Upvote 0
valentino s Active Member Licensed User Longtime User May 18, 2016 #6 I want to share some little updates to the original code. 1) scrollview is not full height 2) a static button let me change panel 3) there's a button and a webview generated in the first panel 4) returns the current panel number There are some remarks on possible improvements and events to track. I hope others will improve it. UPDATED: some more infos on v. 1.0.1: 1) the app has 3 panels to swipe horizontally 2) every panel has a webview in full size, and 2 buttons on the bottom left 3) on the top and on the bottom of the scrollview there are images/buttons 4) the source was completly rewritten to solve bugs and errors. Attachments swipe demo101.zip swipe demo101.zip 7.9 KB · Views: 1,039 Last edited: May 19, 2016 Upvote 0
I want to share some little updates to the original code. 1) scrollview is not full height 2) a static button let me change panel 3) there's a button and a webview generated in the first panel 4) returns the current panel number There are some remarks on possible improvements and events to track. I hope others will improve it. UPDATED: some more infos on v. 1.0.1: 1) the app has 3 panels to swipe horizontally 2) every panel has a webview in full size, and 2 buttons on the bottom left 3) on the top and on the bottom of the scrollview there are images/buttons 4) the source was completly rewritten to solve bugs and errors.
valentino s Active Member Licensed User Longtime User May 19, 2016 #7 Updated the example, corrected many errors and improved in many ways. But I'm sure it is possible to improve it in many ways too... Upvote 0
Updated the example, corrected many errors and improved in many ways. But I'm sure it is possible to improve it in many ways too...
C cloner7801 Active Member Licensed User Longtime User Jul 6, 2016 #8 Erel said: See the attached example: View attachment 43435 It uses NativeObject to create a UIPageControl. Click to expand... Hi Erel, How can I change the UIPageControl color ? Upvote 0
Erel said: See the attached example: View attachment 43435 It uses NativeObject to create a UIPageControl. Click to expand... Hi Erel, How can I change the UIPageControl color ?
Erel B4X founder Staff member Licensed User Longtime User Jul 7, 2016 #9 B4X: Expand Collapse Copy noPageControl.SetField("pageIndicatorTintColor", noPageControl.ColorToUIColor(Colors.Green)) noPageControl.SetField("currentPageIndicatorTintColor", noPageControl.ColorToUIColor(Colors.Yellow)) Upvote 0
B4X: Expand Collapse Copy noPageControl.SetField("pageIndicatorTintColor", noPageControl.ColorToUIColor(Colors.Green)) noPageControl.SetField("currentPageIndicatorTintColor", noPageControl.ColorToUIColor(Colors.Yellow))
M Mike1970 Well-Known Member Licensed User Longtime User Dec 3, 2019 #10 How can I move (and remove) the paging indicator in another position? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 3, 2019 #11 Change this line in Page1_Resize: B4X: Expand Collapse Copy PageControl.SetLayoutAnimated(500, 0.5, 0, 80%y, 100%x, 40dip) Upvote 0
Change this line in Page1_Resize: B4X: Expand Collapse Copy PageControl.SetLayoutAnimated(500, 0.5, 0, 80%y, 100%x, 40dip)
M Mike1970 Well-Known Member Licensed User Longtime User Dec 3, 2019 #12 Erel said: Change this line in Page1_Resize: B4X: Expand Collapse Copy PageControl.SetLayoutAnimated(500, 0.5, 0, 80%y, 100%x, 40dip) Click to expand... Ok thanks, later I will upload a modified example based on yours in code snippet. Upvote 0
Erel said: Change this line in Page1_Resize: B4X: Expand Collapse Copy PageControl.SetLayoutAnimated(500, 0.5, 0, 80%y, 100%x, 40dip) Click to expand... Ok thanks, later I will upload a modified example based on yours in code snippet.