Hi,
how can I remove a dinamically created view?
I have created panels and set a Tag for every Panel.
Now I want to remove the panel with the tag "x". How can I do this?
I have already tried this:
But it is too slow and it gives me errors when a Tag is "null". (Atempt to invoke virtual method blablabla)
how can I remove a dinamically created view?
I have created panels and set a Tag for every Panel.
Now I want to remove the panel with the tag "x". How can I do this?
I have already tried this:
B4X:
For Each v As View In Activity.GetAllViewsRecursive
If v Is Panel Then
Try
If v.Tag=PanelName Then
v.RemoveView
TouchList.RemoveAt(TouchList.IndexOf(PanelName))
End If
Catch
End Try
End If
Next