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.
Am 13.07.2009 um 18:21 schrieb Mathieu Plourde: > > I have the instance to my activity, and I want to get all the views > that are in this activity. I need to add a listener to each view, for > any activity. That means I can't user findViewById. Is there any way > to do this? I was hoping for a activity.getViews() or something, but > it doesn't exist. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

