Skip to content

Instantly share code, notes, and snippets.

@leonguyen
Created April 17, 2013 08:36
Show Gist options
  • Select an option

  • Save leonguyen/5402754 to your computer and use it in GitHub Desktop.

Select an option

Save leonguyen/5402754 to your computer and use it in GitHub Desktop.
Android Lab: Shared References - Defining Main XML Layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<EditText
android:id="@+id/editTextName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="" >
</EditText>
<Button
android:id="@+id/buttonSave"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Save Name" >
</Button>
<Button
android:id="@+id/buttonShow"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignRight="@+id/buttonSave"
android:text="Show Name" >
</Button>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment