iOS Question Paging indicator for scrollview

Keith Yong

Active Member
Licensed User
Understand that there is a option to set the scrolllview with paging function, but how do i show the page indicator like below?
image.jpeg
 

valentino s

Active Member
Licensed User
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

Last edited:

valentino s

Active Member
Licensed User
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...
 

Erel

Administrator
Staff member
Licensed User
B4X:
noPageControl.SetField("pageIndicatorTintColor", noPageControl.ColorToUIColor(Colors.Green))
noPageControl.SetField("currentPageIndicatorTintColor", noPageControl.ColorToUIColor(Colors.Yellow))
 

Erel

Administrator
Staff member
Licensed User
Change this line in Page1_Resize:
B4X:
PageControl.SetLayoutAnimated(500, 0.5, 0, 80%y, 100%x, 40dip)
 
Top