These are the steps I took to show a loading indicator (B4A):
- read the forum thread you mentioned:
loading indicator and download the zip-file.
- in the project add the XUI Views library
- open the designer window from the example and copy for instance B4XLoadingIndicator3.
- open the designer window from the project and paste the B4XLoadingIndicator3.
- in the designer window generate the member (right click - generate)
- in the B4XMainPage from the project you will see the declaration of the B4XLoadingIndicator
- create (if not present) the B4XPage_appear subroutine and add the line to show the indicator
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private B4XLoadingIndicator3 As B4XLoadingIndicator
End Sub
Public Sub Initialize
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Private Sub B4XPage_Appear
B4XLoadingIndicator3.show
End Sub
- run the app and that's it.