Multiple Layout on 1 Activity

BudiWang

Member
Licensed User
Longtime User
I have problem with multiple layout on 1 activity

if i open first layout
Activity.LoadLayout("setup")
and same process after that, when i want to open next layout
Activity.LoadLayout("main")
the first layout still on the screen
i already read some trick to use panel visible value, but do you have other way to clear current layout and replace it with new one? (some sample if can )

thanks
 

yuhong

Member
Licensed User
Longtime User
B4X:
Sub RemoveViews
 Dim i As Int
 
 For i=Activity.NumberOfViews-1 To 0 Step -1
  Activity.RemoveViewAt(i)
 Next
End Sub
 
Upvote 0
Top