Does anyone know how to find a ViewGroup within another ViewGroup at
runtime? If I have a Layout file (xml layout), how can I get a
reference to a nested Layout? Example:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:id="@+id/layout_1"
        android:orientation="vertical"
android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <LinearLayout android:id="@+id/layout_2"
                android:orientation="vertical"
android:layout_width="fill_parent"
                android:layout_height="370dip"
android:background="@color/white">

        </LinearLayout>
</LinearLayout>

How can I get a reference to layout_2 at runtime? I can't use
findViewById() because there's no integer exposed for the inner
Layout.

Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to