Hi, I am trying to copy all the views that a HorizontalScrollView panel has to another panel, but it always shows the following error:
The code, summarized, that I am using is this:
You must call removeView() on the child's parent first.java.lang.IllegalStateException: The specified child already has a parent.
The code, summarized, that I am using is this:
B4X:
pnTrastear.RemoveAllViews
For Each vv As View In hsvMGCanvas.Panel.GetAllViewsRecursive
If vv Is Label Then
Dim lb As Label = vv
pnTrastear.AddView(lb, vv.Left,vv.Top,vv.Width,vv.Height)
End If
Next