Android Question Error with CustomListView

FrankBerra

Active Member
Licensed User
Longtime User
Hi,
i am trying to create 2 identical CustomListViews with the same elements inside.

Why the attached example gives me error ¨java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first." ?

If i remove the following line it adds correctly the panel to the first CustomListView
B4X:
CustomListView2.InsertAt(0,Panel, 100dip, "")
 

Attachments

  • TestCustomListview.zip
    10.7 KB · Views: 119
Top