Skip to content

Instantly share code, notes, and snippets.

Created June 7, 2011 07:19
Show Gist options
  • Save anonymous/1011817 to your computer and use it in GitHub Desktop.
Save anonymous/1011817 to your computer and use it in GitHub Desktop.
xml
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="0"
android:shrinkColumns="*">
<TableRow>
<EditText
android:layout_span="2"
android:id="@+id/ET03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dip"
/>
<Button
android:layout_column="2"
android:id="@+id/B04"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text ="確定"
android:gravity="right"
/>
</TableRow>
<TableRow>
<ListView
android:layout_span="3"
android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</TableRow>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_alignParentBottom ="true" >
<Button
android:layout_column="0"
android:id="@+id/B05"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text ="A"
android:layout_weight="1"
/>
<Button
android:layout_column="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text ="B"
android:layout_weight="1"
/>
<Button
android:layout_column="2"
android:id="@+id/B07"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text ="C"
android:layout_weight="1"
/>
</RelativeLayout>
</TableLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment