[android-developers] Re: Getting all views of an activity.

2009-07-13 Thread Lutz Schönemann
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

[android-developers] Re: Getting all views of an activity.

2009-07-13 Thread Mathieu Plourde
But is there a way to get my LinearLayout from my activity object? On Jul 13, 12:41 pm, Lutz Schönemann lutz.schoenem...@sit.fraunhofer.de wrote: If you have all your Views in a LinearLayout or an other container   that extends ViewGroup you can use the functions getChildCount() and

[android-developers] Re: Getting all views of an activity.

2009-07-13 Thread Dianne Hackborn
Use findViewById() for the top view, and then you can iterate through the children views as you want. On Mon, Jul 13, 2009 at 9:57 AM, Mathieu Plourde mat.plou...@gmail.comwrote: But is there a way to get my LinearLayout from my activity object? On Jul 13, 12:41 pm, Lutz Schönemann