Android Question LoadLayout after Activity.RemoveAllViews

Tomas Petrus

Active Member
Licensed User
Longtime User
Hi,

i want to reload my Activity and i am trying do it like this:

B4X:
Sub Reload
 Activity.RemoveAllViews
 Activity.LoadLayout("1") 
End Sub

it doest't work. I have ListView here and it will never go away. Background change his color to grey.

is there simple way how to do that? I am beginner with B4A so sorry for maybe stupid question and for my english.

Thank you for answer
 

Tomas Petrus

Active Member
Licensed User
Longtime User
thx for answer

I solved it. I wanted to load actual data from SQL into ListView by button click. I did it by
B4X:
 ListView1.Clear
and i filled it again.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…