Skip to content

Instantly share code, notes, and snippets.

@Ansh1234
Created September 19, 2016 09:26
Show Gist options
  • Save Ansh1234/a9519b2a3f25c0b760e715b833bd4d8b to your computer and use it in GitHub Desktop.
Save Ansh1234/a9519b2a3f25c0b760e715b833bd4d8b to your computer and use it in GitHub Desktop.
Xml file used for performing action on a nested layout when its id is not known
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/parent_container"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Hello"/>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment