Android Question Get View Index

Declan

Well-Known Member
Licensed User
Longtime User
Is it possible to get the index of a View?
I have two spinner views.
Spinner1 loads Spinner2.
When both spinners are loaded and visible and the user clicks Spinner1, I get the following error:
B4X:
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
I would like to use "Activity.RemoveViewAt( )" to remove Spinner2
 
Top