Enabling view on time

Kamac

Active Member
Licensed User
Longtime User
Is there a way to show my imageview just before using:

RemoveViews with code:

B4X:
Sub RemoveViews
 Dim i As Int
 
 For i=Activity.NumberOfViews-1 To 0 Step -1
  Activity.RemoveViewAt(i)
 Next
End Sub

so that my imageview will show?

current code:

B4X:
loading.Visible = True
RemoveViews
Activity.LoadLayout("something.bal")

All it's doing for now is changing layout, which takes a little, so i'd like to show loading bar, yet for now it won't display it, just change layout when loaded.


Also, i'd like to avoid using timer.
 
Top