<?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="match_parent" >

    <RelativeLayout
        android:id="@+id/afc_filechooser_activity_viewgroup_header"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true" >

        <ImageView
            android:id="@+id/afc_filechooser_activity_button_go_back"
            style="@style/afc_button_navi_left"
            android:layout_alignParentLeft="true" />

        <ImageView
            android:id="@+id/afc_filechooser_activity_button_go_forward"
            style="@style/afc_button_navi_right"
            android:layout_toRightOf="@id/afc_filechooser_activity_button_go_back" />

        <RelativeLayout
            android:id="@+id/afc_filechooser_activity_viewgroup_button_locations"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_marginRight="@dimen/afc_5dp"
            android:layout_marginTop="@dimen/afc_5dp"
            android:layout_toRightOf="@id/afc_filechooser_activity_button_go_forward" >

            <HorizontalScrollView
                android:id="@+id/afc_filechooser_activity_view_locations_container"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentTop="true" >

                <LinearLayout
                    android:id="@+id/afc_filechooser_activity_view_locations"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_gravity="center_vertical"
                    android:orientation="horizontal"
                    android:showDividers="middle" />
            </HorizontalScrollView>

            <View
                android:id="@+id/afc_filechooser_activity_header_view_divider"
                android:layout_width="match_parent"
                android:layout_height="@dimen/afc_viewgroup_button_locations_bottom_divider_height"
                android:layout_below="@id/afc_filechooser_activity_view_locations_container"
                android:background="@color/afc_border_line_dark" />

            <TextView
                android:id="@+id/afc_filechooser_activity_textview_full_dir_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/afc_filechooser_activity_header_view_divider"
                android:layout_centerHorizontal="true"
                android:ellipsize="start"
                android:gravity="center"
                android:singleLine="true"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:visibility="gone" />
        </RelativeLayout>
    </RelativeLayout>

    <LinearLayout
        android:id="@+id/afc_filechooser_activity_viewgroup_files"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/afc_filechooser_activity_viewgroup_footer_container"
        android:layout_below="@id/afc_filechooser_activity_viewgroup_header"
        android:layout_marginBottom="@dimen/afc_10dp"
        android:layout_marginTop="@dimen/afc_10dp"
        android:orientation="vertical" >

        <LinearLayout
            android:id="@+id/afc_filechooser_activity_view_files_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:orientation="horizontal" >
        </LinearLayout>

        <TextView
            android:id="@+id/afc_filechooser_activity_view_files_footer_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_weight="0.1"
            android:gravity="center"
            android:padding="@dimen/afc_10dp"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textStyle="italic"
            android:visibility="gone" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/afc_filechooser_activity_viewgroup_footer_container"
        style="?android:attr/buttonBarStyle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:orientation="vertical"
        android:visibility="gone" >

        <View
            android:id="@+id/afc_filechooser_activity_footer_view_divider"
            android:layout_width="match_parent"
            android:layout_height="@dimen/afc_viewgroup_button_locations_bottom_divider_height" />

        <LinearLayout
            android:id="@+id/afc_filechooser_activity_viewgroup_footer"
            style="?android:attr/buttonBarStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:orientation="horizontal"
            android:visibility="gone" >

            <EditText
                android:id="@+id/afc_filechooser_activity_textview_saveas_filename"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_margin="@dimen/afc_5dp"
                android:layout_weight="1"
                android:hint="@string/afc_hint_save_as_filename"
                android:imeOptions="actionDone"
                android:singleLine="true"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:visibility="gone" >

                <requestFocus />
            </EditText>

            <Button
                android:id="@+id/afc_filechooser_activity_button_ok"
                style="?android:attr/buttonBarButtonStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_margin="@dimen/afc_5dp"
                android:visibility="gone" />
        </LinearLayout>
    </LinearLayout>

</RelativeLayout>