<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (c) 2012 Hai Bison

    See the file LICENSE at the root directory of this project for copying
    permission.
-->

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >

    <TableLayout
        style="?android:attr/buttonBarStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:layout_gravity="center" >

        <TableRow
            android:layout_marginLeft="@dimen/afc_10dp"
            android:layout_marginRight="@dimen/afc_10dp" >

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_marginRight="@dimen/afc_30dp"
                android:text="@string/afc_title_name"
                android:textAppearance="?android:attr/textAppearanceMedium" />

            <Button
                android:id="@+id/afc_settings_sort_view_button_sort_by_name_asc"
                style="?android:attr/buttonBarButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:drawableRight="@drawable/afc_ic_menu_sort_by_name_asc" />

            <Button
                android:id="@+id/afc_settings_sort_view_button_sort_by_name_desc"
                style="?android:attr/buttonBarButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:drawableRight="@drawable/afc_ic_menu_sort_by_name_desc" />
        </TableRow>

        <TableRow
            android:layout_marginLeft="@dimen/afc_10dp"
            android:layout_marginRight="@dimen/afc_10dp" >

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_marginRight="@dimen/afc_30dp"
                android:text="@string/afc_title_size"
                android:textAppearance="?android:attr/textAppearanceMedium" />

            <Button
                android:id="@+id/afc_settings_sort_view_button_sort_by_size_asc"
                style="?android:attr/buttonBarButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:drawableRight="@drawable/afc_ic_menu_sort_by_size_asc" />

            <Button
                android:id="@+id/afc_settings_sort_view_button_sort_by_size_desc"
                style="?android:attr/buttonBarButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:drawableRight="@drawable/afc_ic_menu_sort_by_size_desc" />
        </TableRow>

        <TableRow
            android:layout_marginLeft="@dimen/afc_10dp"
            android:layout_marginRight="@dimen/afc_10dp" >

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_marginRight="@dimen/afc_30dp"
                android:text="@string/afc_title_date"
                android:textAppearance="?android:attr/textAppearanceMedium" />

            <Button
                android:id="@+id/afc_settings_sort_view_button_sort_by_date_asc"
                style="?android:attr/buttonBarButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:drawableRight="@drawable/afc_ic_menu_sort_by_date_asc" />

            <Button
                android:id="@+id/afc_settings_sort_view_button_sort_by_date_desc"
                style="?android:attr/buttonBarButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:drawableRight="@drawable/afc_ic_menu_sort_by_date_desc" />
        </TableRow>
    </TableLayout>

</RelativeLayout>