<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">

  <ListView android:id="@+id/settings_list"
    android:layout_weight="1"
    android:layout_width="fill_parent"
    android:layout_height="0dp" />

  <View
      android:layout_width="wrap_content"
      android:layout_height="1dp"
      android:background="?attr/customDivider"
      >
  </View>

  <LinearLayout android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">

    <Button android:text="@string/ok"
      style="?android:attr/buttonBarButtonStyle"
      android:id="@+id/settings_ok"
      android:layout_weight="1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" />

    <Button android:text="@string/cancel"
      style="?android:attr/buttonBarButtonStyle"
      android:id="@+id/settings_cancel"
      android:layout_weight="1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" />
  </LinearLayout>
</LinearLayout>

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">

  <ListView android:id="@+id/settings_list"
    android:layout_weight="1"
    android:layout_width="fill_parent"
    android:layout_height="0dp" />

  <View
      android:layout_width="wrap_content"
      android:layout_height="1dp"
      android:background="?attr/customDivider"
      >
  </View>

  <LinearLayout android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">

    <Button android:text="@string/cancel"
            style="?android:attr/buttonBarButtonStyle"
            android:id="@+id/settings_cancel"
            android:layout_weight="1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

    <Button android:text="@string/ok"
            style="?android:attr/buttonBarButtonStyle"
            android:id="@+id/settings_ok"
            android:layout_weight="1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

  </LinearLayout>
</LinearLayout>

Change ok cancel button positions
Change ok cancel button positions

This way we follow common conventions about positioning ok and cancel
buttons, where ok buttons are always to the right and cancel buttons are
always to the left.
