<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2014 Vlad Mihalachi
  ~
  ~ This file is part of Turbo Editor.
  ~
  ~ Turbo Editor is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ Turbo Editor is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/navigation_drawer_background_inverted"
    >

    <ListView
        android:id="@id/android:list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fadingEdge="none"
        android:cacheColorHint="@android:color/transparent"
        android:layout_above="@id/drawer_buttons"
        android:divider="@color/divider"
        android:listSelector="@android:color/transparent"
        android:choiceMode="singleChoice"
        android:background="@null"
        />

    <TextView
        android:id="@android:id/empty"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center"
        android:textSize="@dimen/text_size_mega_title"
        android:fontFamily="sans-serif-light"
        android:text="@string/recent_files"
        android:textColor="@android:color/secondary_text_dark"
        android:layout_above="@id/drawer_buttons" />



    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="104dp"
        android:id="@id/drawer_buttons"
        android:layout_alignParentBottom="true"
        android:orientation="vertical">

        <View
            android:background="@color/divider_inverted"
            android:layout_width="match_parent"
            android:layout_height="@dimen/line_dimension"/>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="52dp"
        android:orientation="horizontal"
        >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="horizontal"
            android:clickable="true"
            android:gravity="center_vertical"
            android:onClick="OpenFile"
            android:background="@drawable/item_background_holo_dark"
            android:layout_toLeftOf="@+id/ic_add_dark"
            >
            <ImageView
                android:layout_width="35dp"
                android:layout_height="35dp"
                android:src="@drawable/ic_file_dark"
                android:paddingStart="16dp"
                android:paddingLeft="16dp"/>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:text="@string/open_a_file"
                android:gravity="center_vertical"
                android:paddingStart="20dp"
                android:paddingLeft="20dp"
                android:paddingEnd="20dp"
                android:paddingRight="20dp"
                android:textSize="12sp"
                android:textAllCaps="true"
                android:textColor="@color/navigation_drawer_button_text_color_inverted"/>
        </LinearLayout>

        <View
            android:background="@color/divider_inverted"
            android:layout_width="@dimen/line_dimension"
            android:layout_height="match_parent"
            android:layout_toLeftOf="@id/ic_add_dark"
            android:layout_marginTop="10dp"
            android:layout_marginBottom="10dp"/>

        <ImageView
            android:id="@+id/ic_add_dark"
            android:layout_width="64dp"
            android:layout_height="match_parent"
            android:src="@drawable/ic_add_dark"
            android:padding="14dp"
            android:layout_alignParentRight="true"
            android:clickable="true"
            android:onClick="CreateFile"
            android:background="@drawable/item_background_holo_dark"
            />

    </RelativeLayout>


    <View
        android:background="@color/divider_inverted"
        android:layout_width="match_parent"
        android:layout_height="@dimen/line_dimension"/>

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="52dp"
            android:orientation="horizontal"
            >

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="horizontal"
                android:clickable="true"
                android:gravity="center_vertical"
                android:onClick="OpenSettings"
                android:background="@drawable/item_background_holo_dark"
                android:layout_toLeftOf="@+id/ic_info_dark"
                >
                <ImageView
                    android:layout_width="35dp"
                    android:layout_height="35dp"
                    android:src="@drawable/ic_settings_dark"
                    android:paddingStart="16dp"
                    android:paddingLeft="16dp"/>

                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:text="@string/preferenze"
                    android:gravity="center_vertical"
                    android:paddingStart="20dp"
                    android:paddingLeft="20dp"
                    android:paddingEnd="20dp"
                    android:paddingRight="20dp"
                    android:textSize="12sp"
                    android:textAllCaps="true"
                    android:textColor="@color/navigation_drawer_button_text_color_inverted"/>
            </LinearLayout>

            <View
                android:background="@color/divider_inverted"
                android:layout_width="@dimen/line_dimension"
                android:layout_height="match_parent"
                android:layout_toLeftOf="@id/ic_info_dark"
                android:layout_marginTop="10dp"
                android:layout_marginBottom="10dp"/>

            <ImageView
                android:id="@+id/ic_info_dark"
                android:layout_width="64dp"
                android:layout_height="match_parent"
                android:src="@drawable/ic_info_dark"
                android:padding="14dp"
                android:layout_alignParentRight="true"
                android:clickable="true"
                android:onClick="OpenInfo"
                android:background="@drawable/item_background_holo_dark"
                />

        </RelativeLayout>

    </LinearLayout>

</RelativeLayout>