Steve McKay | 0fbfc65 | 2015-08-20 16:48:49 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2013 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
Ben Kwa | c469334 | 2015-09-30 10:00:10 -0700 | [diff] [blame] | 17 | <!-- CoordinatorLayout is necessary for various components (e.g. Snackbars, and |
| 18 | floating action buttons) to operate correctly. --> |
KOUSHIK PANUGANTI | 6ca7acc | 2018-04-17 16:00:10 -0700 | [diff] [blame] | 19 | <androidx.coordinatorlayout.widget.CoordinatorLayout |
Ben Kwa | c469334 | 2015-09-30 10:00:10 -0700 | [diff] [blame] | 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
Tony Huang | 52e25b5 | 2019-04-30 18:14:36 +0800 | [diff] [blame] | 21 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Steve McKay | 0fbfc65 | 2015-08-20 16:48:49 -0700 | [diff] [blame] | 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent" |
Ben Kwa | 74e5d41 | 2016-02-10 07:46:35 -0800 | [diff] [blame] | 24 | android:id="@+id/coordinator_layout" |
Jon Mann | ca2de66 | 2017-05-26 16:18:03 -0700 | [diff] [blame] | 25 | android:focusable="true"> |
Steve McKay | 0fbfc65 | 2015-08-20 16:48:49 -0700 | [diff] [blame] | 26 | |
Ben Kwa | f4b0ff6 | 2016-02-02 12:11:10 -0800 | [diff] [blame] | 27 | <LinearLayout |
Steve McKay | 0fbfc65 | 2015-08-20 16:48:49 -0700 | [diff] [blame] | 28 | android:layout_width="match_parent" |
Ben Kwa | c469334 | 2015-09-30 10:00:10 -0700 | [diff] [blame] | 29 | android:layout_height="match_parent" |
| 30 | android:orientation="vertical"> |
Steve McKay | 0fbfc65 | 2015-08-20 16:48:49 -0700 | [diff] [blame] | 31 | |
Tony Huang | 8d8d92f | 2018-09-13 14:41:16 +0800 | [diff] [blame] | 32 | <androidx.appcompat.widget.Toolbar |
Ben Kwa | c469334 | 2015-09-30 10:00:10 -0700 | [diff] [blame] | 33 | android:id="@+id/toolbar" |
| 34 | android:layout_width="match_parent" |
| 35 | android:layout_height="?android:attr/actionBarSize" |
Tony Huang | 7cbde88 | 2018-11-23 12:14:34 +0800 | [diff] [blame] | 36 | android:layout_margin="@dimen/search_bar_margin" |
Tony Huang | eb43e96 | 2018-12-19 15:45:36 +0800 | [diff] [blame] | 37 | android:background="?android:attr/colorBackground" |
Tony Huang | 7cbde88 | 2018-11-23 12:14:34 +0800 | [diff] [blame] | 38 | android:elevation="3dp" |
Ben Kwa | c469334 | 2015-09-30 10:00:10 -0700 | [diff] [blame] | 39 | android:theme="?actionBarTheme" |
Tony Huang | 52e25b5 | 2019-04-30 18:14:36 +0800 | [diff] [blame] | 40 | android:popupTheme="?actionBarPopupTheme" |
| 41 | app:titleTextAppearance="@style/ToolbarTitle"> |
Ben Kwa | c469334 | 2015-09-30 10:00:10 -0700 | [diff] [blame] | 42 | |
Tony Huang | 7cbde88 | 2018-11-23 12:14:34 +0800 | [diff] [blame] | 43 | <TextView |
| 44 | android:id="@+id/searchbar_title" |
| 45 | android:layout_width="match_parent" |
| 46 | android:layout_height="?android:attr/actionBarSize" |
| 47 | android:layout_marginStart="@dimen/search_bar_text_margin_start" |
| 48 | android:layout_marginEnd="@dimen/search_bar_text_margin_end" |
| 49 | android:paddingStart="@dimen/search_bar_icon_padding" |
| 50 | android:gravity="center_vertical" |
| 51 | android:text="@string/search_bar_hint" |
| 52 | android:textAppearance="@style/SearchBarTitle" |
| 53 | android:drawableStart="@drawable/ic_menu_search" |
| 54 | android:drawablePadding="@dimen/search_bar_icon_padding"/> |
| 55 | |
Ben Lin | b8c54e7 | 2016-06-10 12:13:27 -0700 | [diff] [blame] | 56 | <com.android.documentsui.HorizontalBreadcrumb |
Steve McKay | 85ec0d6 | 2016-06-24 15:05:08 -0700 | [diff] [blame] | 57 | android:id="@+id/horizontal_breadcrumb" |
Ben Lin | ba1cb3d | 2016-06-20 17:08:22 -0700 | [diff] [blame] | 58 | android:layout_marginRight="20dp" |
Ben Lin | b8c54e7 | 2016-06-10 12:13:27 -0700 | [diff] [blame] | 59 | android:layout_width="match_parent" |
Tony Huang | f6bf005 | 2019-08-07 18:06:50 +0800 | [diff] [blame] | 60 | android:layout_height="wrap_content" /> |
Ben Kwa | c469334 | 2015-09-30 10:00:10 -0700 | [diff] [blame] | 61 | |
Tony Huang | 8d8d92f | 2018-09-13 14:41:16 +0800 | [diff] [blame] | 62 | </androidx.appcompat.widget.Toolbar> |
Ben Kwa | c469334 | 2015-09-30 10:00:10 -0700 | [diff] [blame] | 63 | |
| 64 | <LinearLayout |
| 65 | android:layout_width="match_parent" |
| 66 | android:layout_height="0dp" |
| 67 | android:layout_weight="1" |
| 68 | android:orientation="horizontal" |
Ben Kwa | 65d7c04 | 2015-11-10 21:02:47 -0800 | [diff] [blame] | 69 | android:baselineAligned="false"> |
Ben Kwa | c469334 | 2015-09-30 10:00:10 -0700 | [diff] [blame] | 70 | |
| 71 | <FrameLayout |
| 72 | android:id="@+id/container_roots" |
| 73 | android:layout_width="256dp" |
| 74 | android:layout_height="match_parent" /> |
| 75 | |
Tony Huang | 0f7e836 | 2018-11-23 12:14:34 +0800 | [diff] [blame] | 76 | <LinearLayout |
| 77 | android:layout_width="match_parent" |
| 78 | android:layout_height="match_parent" |
| 79 | android:orientation="vertical" |
| 80 | android:elevation="8dp"> |
| 81 | |
| 82 | <include layout="@layout/directory_header" /> |
| 83 | |
| 84 | <FrameLayout |
| 85 | android:id="@+id/container_directory" |
| 86 | android:clipToPadding="false" |
| 87 | android:layout_width="match_parent" |
| 88 | android:layout_height="0dp" |
| 89 | android:layout_weight="1" /> |
| 90 | |
Tony Huang | f7b05c4 | 2019-05-02 16:51:01 +0800 | [diff] [blame] | 91 | <androidx.coordinatorlayout.widget.CoordinatorLayout |
Tony Huang | 0f7e836 | 2018-11-23 12:14:34 +0800 | [diff] [blame] | 92 | android:id="@+id/container_save" |
| 93 | android:layout_width="match_parent" |
| 94 | android:layout_height="wrap_content" |
Tony Huang | f7b05c4 | 2019-05-02 16:51:01 +0800 | [diff] [blame] | 95 | android:background="?android:attr/colorBackgroundFloating" |
Tony Huang | 0f7e836 | 2018-11-23 12:14:34 +0800 | [diff] [blame] | 96 | android:elevation="8dp" /> |
| 97 | |
| 98 | </LinearLayout> |
Ben Kwa | c469334 | 2015-09-30 10:00:10 -0700 | [diff] [blame] | 99 | |
| 100 | </LinearLayout> |
Steve McKay | 0fbfc65 | 2015-08-20 16:48:49 -0700 | [diff] [blame] | 101 | |
| 102 | </LinearLayout> |
| 103 | |
KOUSHIK PANUGANTI | 6ca7acc | 2018-04-17 16:00:10 -0700 | [diff] [blame] | 104 | </androidx.coordinatorlayout.widget.CoordinatorLayout> |