Skip to content

Instantly share code, notes, and snippets.

@drteeth
Created August 21, 2011 02:39
Show Gist options
  • Select an option

  • Save drteeth/1160018 to your computer and use it in GitHub Desktop.

Select an option

Save drteeth/1160018 to your computer and use it in GitHub Desktop.
ListView and Buttons
<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