F FrankBerra Active Member Licensed User Longtime User Jan 2, 2017 #1 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 Code: CustomListView2.InsertAt(0,Panel, 100dip, "") Attachments TestCustomListview.zip TestCustomListview.zip 10.7 KB · Views: 259
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 Code: CustomListView2.InsertAt(0,Panel, 100dip, "")
Erel B4X founder Staff member Licensed User Longtime User Jan 2, 2017 #2 You cannot add the same panel to both lists. See how items are added in the example: https://www.b4x.com/android/forum/threads/customlistview-a-flexible-list-based-on-scrollview.19567/ Upvote 0
You cannot add the same panel to both lists. See how items are added in the example: https://www.b4x.com/android/forum/threads/customlistview-a-flexible-list-based-on-scrollview.19567/