Is there a way to iterate through all the views in your Activity? Something like:
Iterator it = getViewIterator(); ...
Does this exist at all?
If you have all your Views in a LinearLayout or an other container that extends ViewGroup you can use the functions getChildCount() and getChildAt(int) and iterate through all of the contained views.
LinearLayout
container
ViewGroup
getChildCount()
getChildAt(int)
Hope this helps.
2.1m questions
2.1m answers
60 comments
57.0k users