I am trying to add and then remove a ScrollableView to/from a View.
It seems that it is not possible to remove that ScrollableView from a View (which has not been added to a Window). A warning will be displayed, that the ScrollableView has already been removed. But if I, afterwards, add the parent View to a Window and open it up, it will display the ScrollableView inside of it.
If I add that View to a Window before trying to add and remove the ScrollableView it works. You can even add the parent View to a Window, remove it afterwards and then add/remove the ScrollableView (also works as expected).
Is there any other solution/workaround or am I doing something wrong?
Anyways, it is not so bad, since there is a solution for it, but it took me some time to figure out - which was really annoying.
Thanks for any hints!
Think you can help? Login to answer this question!