I have the following code:
Debugger says : You must call RemoveView () on the child's parent first.
But i add views programmatically , only ScrollView is in designer.
B4X:
Sub ScrollCarols_CreateList
Dim List1 As List
Dim scList As List
scList.Initialize
Dim scS As Panel
scS.Initialize ("")
List1 = File.ReadList(File.DirAssets, "Carols.txt")
For i = 0 To List1.Size - 1
scList.Add(scS)
ScrollCarols.Panel.AddView (scList.Get(i),0,0,100%x,40dip)
Next
End Sub
Debugger says : You must call RemoveView () on the child's parent first.
But i add views programmatically , only ScrollView is in designer.