mirror of
https://github.com/TeamAmaze/AmazeFileManager.git
synced 2026-10-19 14:32:40 +08:00
291 lines
11 KiB
XML
291 lines
11 KiB
XML
<!--
|
|
Copyright (C) 2014 Arpit Khurana <arpitkh96@gmail.com>, Vishal Nehra <vishalmeham2@gmail.com>
|
|
|
|
This file is part of Amaze File Manager.
|
|
|
|
Amaze File Manager 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.
|
|
|
|
This program 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/>.
|
|
-->
|
|
|
|
<android.support.v4.widget.DrawerLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:fab="http://schemas.android.com/apk/res-auto"
|
|
xmlns:wheel="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/lin"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
>
|
|
<RelativeLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="?android:attr/actionBarSize"
|
|
android:orientation="horizontal"
|
|
android:id="@+id/action_bar">
|
|
<ImageButton
|
|
android:id="@+id/drawer_buttton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_drawer_l"
|
|
style="?android:borderlessButtonStyle"/>
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:layout_toRightOf="@id/drawer_buttton"
|
|
android:layout_marginLeft="15dp"
|
|
android:textColor="@android:color/white"
|
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:visibility="visible"/>
|
|
|
|
|
|
<ImageButton
|
|
android:background="@drawable/listitem1"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/action_overflow"
|
|
android:padding="5dp"
|
|
android:src="@drawable/ic_action_overflow"
|
|
/>
|
|
<ImageButton
|
|
android:padding="6dp"
|
|
android:background="@drawable/listitem1"
|
|
android:layout_toLeftOf="@id/action_overflow"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/search"
|
|
android:src="@drawable/ic_action_search"
|
|
/>/><ImageButton
|
|
android:padding="8dp"
|
|
android:background="@drawable/listitem1"
|
|
android:layout_toLeftOf="@id/search"
|
|
android:visibility="invisible"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/paste"
|
|
android:src="@drawable/ic_content_paste_white_36dp"
|
|
/>
|
|
<com.pnikosis.materialishprogress.ProgressWheel
|
|
android:background="@drawable/listitem1"
|
|
android:layout_toLeftOf="@id/search"
|
|
android:visibility="invisible"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:padding="12dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
wheel:barColor="#ffffff"
|
|
wheel:progressIndeterminate="true"
|
|
wheel:barWidth="3dp"
|
|
wheel:spinSpeed="1.0"
|
|
android:id="@+id/progressBar"
|
|
/>
|
|
<Spinner
|
|
android:layout_toRightOf="@id/drawer_buttton"
|
|
android:layout_toLeftOf="@id/paste"
|
|
android:id="@+id/tab_spinner"
|
|
android:layout_width="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:background="@drawable/item_backgrund"
|
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
|
android:visibility="gone"></Spinner>
|
|
</RelativeLayout>
|
|
<FrameLayout
|
|
android:id="@+id/buttonbarframe"
|
|
android:layout_below="@id/action_bar"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="fill_parent">
|
|
|
|
<HorizontalScrollView
|
|
android:scrollbars="none"
|
|
android:id="@+id/scroll"
|
|
android:paddingBottom="5dp"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/buttons"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
</LinearLayout>
|
|
</HorizontalScrollView>
|
|
<LinearLayout
|
|
android:id="@+id/pathbar"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="2dp"
|
|
android:orientation="horizontal">
|
|
<ImageButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="?android:attr/actionBarSize"
|
|
android:src="@drawable/ic_drawer_l"
|
|
android:layout_weight="1"
|
|
android:visibility="invisible"
|
|
android:clickable="false"
|
|
style="?android:borderlessButtonStyle"/>
|
|
<LinearLayout
|
|
android:clickable="false"
|
|
android:layout_weight="20"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<HorizontalScrollView
|
|
android:scrollbars="none"
|
|
android:id="@+id/scroll1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:clickable="false"
|
|
android:layout_width="wrap_content"
|
|
style="@android:style/TextAppearance.Small"
|
|
android:textColor="@android:color/white"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/fullpath" />
|
|
</HorizontalScrollView>
|
|
<TextView
|
|
android:clickable="false"
|
|
android:layout_width="wrap_content"
|
|
android:layout_gravity="right"
|
|
android:textSize="10dp"
|
|
android:textColor="@android:color/white"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="7dp"
|
|
android:id="@+id/pathname" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
<!--
|
|
As the main content view, the view below consumes the entire
|
|
space available using match_parent in both dimensions.
|
|
-->
|
|
|
|
<FrameLayout
|
|
android:layout_below="@id/buttonbarframe"
|
|
android:id="@+id/content_frame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
|
|
<com.melnykov.fab.FloatingActionButton
|
|
android:id="@+id/fab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentRight="true"
|
|
android:src="@drawable/ic_action_new" />
|
|
</RelativeLayout>
|
|
|
|
<!--
|
|
android:layout_gravity="start" tells DrawerLayout to treat
|
|
this as a sliding drawer on the left side for left-to-right
|
|
languages and on the right side for right-to-left languages.
|
|
The drawer is given a fixed width in dp and extends the full height of
|
|
the container. A solid background is used for contrast
|
|
with the content view.
|
|
-->
|
|
<RelativeLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="240dp"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/left_drawer"
|
|
android:layout_gravity="start"
|
|
>
|
|
<LinearLayout
|
|
android:id="@+id/drawerheader"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="50dp"
|
|
android:padding="5dp"
|
|
android:clickable="false">
|
|
|
|
<ImageView
|
|
android:id="@+id/icon"
|
|
android:layout_width="40dp"
|
|
android:layout_height="fill_parent"
|
|
android:clickable="false"
|
|
android:padding="5dp"
|
|
android:src="@drawable/ic_launcher1"
|
|
android:gravity="center_vertical"
|
|
android:contentDescription="@string/icon" />
|
|
|
|
<TextView
|
|
android:id="@+id/firstline"
|
|
android:layout_width="wrap_content"
|
|
android:layout_toRightOf="@id/icon"
|
|
android:layout_height="fill_parent"
|
|
android:clickable="false"
|
|
style="@android:style/TextAppearance.Medium.Inverse"
|
|
android:text="Amaze File Manager"
|
|
android:gravity="center_vertical" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/settings_bg"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="?android:attr/actionBarSize">
|
|
<ImageButton
|
|
android:id="@+id/settingsbutton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/listitem1"
|
|
android:src="@drawable/ic_action_settings"
|
|
/></LinearLayout>
|
|
<ListView
|
|
android:id="@+id/menu_drawer"
|
|
style="@android:style/Theme.Holo.Light"
|
|
android:layout_width="250dp"
|
|
android:layout_below="@id/drawerheader"
|
|
android:layout_above="@id/settings_bg"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:background="@drawable/drawer_bg"
|
|
android:choiceMode="singleChoice"
|
|
android:dividerHeight="0dip" />
|
|
</RelativeLayout>
|
|
<!--
|
|
<ListView
|
|
android:id="@+id/right_drawer"
|
|
android:layout_width="240dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="right"
|
|
android:choiceMode="singleChoice"
|
|
android:background="@drawable/drawer_bg"
|
|
android:dividerHeight="0dip"
|
|
|
|
style="@android:style/Theme.Holo.Light"
|
|
/>
|
|
-->
|
|
|
|
</android.support.v4.widget.DrawerLayout>
|