I'm trying to get a handle to an included LinearLayout to my activities layout. Using the given id simply returns null.
Log.i("TEST","V: "+this.findViewById(R.id.userAdvance)); I want to have control over the included layout so that I can set it's view to GONE or VISIBLE. shared layout "settings_advance_users.xml": <merge xmlns:android="http://schemas.android.com/apk/res/android"> <LinearLayout android:id="@+id/settingsUserExpBlock" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <!-- Some content --> </LinearLayout> </merge> activity layout: <include android:id="@+id/userAdvance" layout="@layout/ settings_advance_users" /> Thanks! Moto -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en