Created
August 21, 2011 02:39
-
-
Save drteeth/1160018 to your computer and use it in GitHub Desktop.
ListView and Buttons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="fill_parent" android:layout_height="fill_parent"> | |
| <LinearLayout android:id="@+id/buttons" android:orientation="horizontal" | |
| android:layout_width="fill_parent" android:layout_height="wrap_content" | |
| android:layout_weight="1" android:layout_alignParentBottom="true"> | |
| <Button android:id="@+id/okay" android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" android:text="@android:string/ok" | |
| android:layout_weight="1" /> | |
| <Button android:id="@+id/cancel" android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" android:text="@android:string/cancel" | |
| android:layout_weight="1" /> | |
| </LinearLayout> | |
| <ListView android:layout_width="fill_parent" | |
| android:layout_height="fill_parent" android:id="@+id/list" | |
| android:layout_alignParentTop="true" android:layout_above="@id/buttons" /> | |
| </RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment