B4A Library [B4X] [XUI] Page Indicator

B4XPageIndicator is a simple and cross platform custom view that looks like this:

SS-2019-05-12_08.52.17.png


It indicates the current page. A page can mean many things, it is not limited to TabStripViewPager.

How to use:
- Add it with the designer. You probably want to set the Base Background to be transparent (Alpha = 0 in B4A).
- Set the current page with:
B4X:
Sub TabStrip1_PageSelected (Position As Int)
   B4XPageIndicator1.CurrentPage = Position
End Sub

The class is included in the attached example.
 

Attachments

  • B4XPageIndicator.zip
    13.4 KB · Views: 1,286
Top