diff options
author | 2024-11-14 17:48:18 +1100 | |
---|---|---|
committer | 2024-11-14 17:49:26 +1100 | |
commit | 36936a1439a2400d16c2ace536ae319f11cb9312 (patch) | |
tree | 095911825d6f6fb71abc4fb71ddb8f99c2f37f44 /res/layout | |
parent | 223d2fc64cbc385dbda2588fe09635bf5a54c785 (diff) |
DocumentsUI: Move the styles, layout and theme for flag M3 disabled
This is a preparation to allow customizing the Material3 behind a flag
without changing the current layout and styles.
Test: Manual build, deploy apk and start it on DUT with flag on/off
Flag: com.android.documentsui.flags.use_material3
Bug: 377771271
Change-Id: Ifdea578323a613456ffcc2e146adaf6892d91ff2
Diffstat (limited to 'res/layout')
39 files changed, 0 insertions, 2504 deletions
diff --git a/res/layout/apps_item.xml b/res/layout/apps_item.xml deleted file mode 100644 index 61241f761..000000000 --- a/res/layout/apps_item.xml +++ /dev/null @@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2018 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="1" - android:minWidth="@dimen/apps_row_item_width" - android:paddingBottom="@dimen/apps_row_exit_icon_margin_bottom" - android:orientation="vertical" - android:background="@drawable/generic_ripple_background" - android:gravity="center_horizontal"> - - <ImageView - android:id="@+id/app_icon" - android:layout_width="@dimen/apps_row_app_icon_size" - android:layout_height="@dimen/apps_row_app_icon_size" - android:layout_marginTop="@dimen/apps_row_app_icon_margin_top" - android:layout_marginBottom="@dimen/apps_row_app_icon_margin_bottom" - android:layout_marginStart="@dimen/apps_row_app_icon_margin_horizontal" - android:layout_marginEnd="@dimen/apps_row_app_icon_margin_horizontal"/> - - <TextView - android:id="@android:id/title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginStart="@dimen/apps_row_item_text_margin_horizontal" - android:layout_marginEnd="@dimen/apps_row_item_text_margin_horizontal" - android:textAppearance="@style/AppsItemText" - android:maxLines="1" - android:ellipsize="end" - android:gravity="center"/> - - <TextView - android:id="@+id/summary" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginStart="@dimen/apps_row_item_text_margin_horizontal" - android:layout_marginEnd="@dimen/apps_row_item_text_margin_horizontal" - android:textAppearance="@style/AppsItemSubText" - android:maxLines="1" - android:ellipsize="end" - android:gravity="center"/> - -</LinearLayout>
\ No newline at end of file diff --git a/res/layout/apps_row.xml b/res/layout/apps_row.xml deleted file mode 100644 index 0b8504a9a..000000000 --- a/res/layout/apps_row.xml +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2018 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/apps_row" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical"> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:minHeight="@dimen/apps_row_title_height" - android:paddingStart="@dimen/apps_row_title_padding_start" - android:textAppearance="@style/SortTitle" - android:text="@string/apps_row_title" - android:textAllCaps="true" - android:gravity="center"/> - - <HorizontalScrollView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:fillViewport="true" - android:scrollbars="none"> - <LinearLayout - android:id="@+id/apps_group" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="horizontal"/> - </HorizontalScrollView> - -</LinearLayout>
\ No newline at end of file diff --git a/res/layout/column_headers.xml b/res/layout/column_headers.xml deleted file mode 100644 index bee221203..000000000 --- a/res/layout/column_headers.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<!-- A placeholder of table header on small screens. This won't inflate any view when it's included - into other layouts. --> -<merge /> diff --git a/res/layout/dialog_delete_confirmation.xml b/res/layout/dialog_delete_confirmation.xml deleted file mode 100644 index 80879ad00..000000000 --- a/res/layout/dialog_delete_confirmation.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<TextView - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingTop="24dp" - android:paddingStart="24dp" - android:paddingEnd="24dp" - android:textAppearance="@style/Subhead"> -</TextView> diff --git a/res/layout/dialog_file_name.xml b/res/layout/dialog_file_name.xml deleted file mode 100644 index 7f2a9592b..000000000 --- a/res/layout/dialog_file_name.xml +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:fitsSystemWindows="true"> - - <com.google.android.material.textfield.TextInputLayout - android:id="@+id/input_wrapper" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginStart="?android:attr/listPreferredItemPaddingStart" - android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd" - android:layout_marginTop="@dimen/dialog_content_padding_top" - android:layout_marginBottom="@dimen/dialog_content_padding_bottom" - android:layout_centerInParent="true" - style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"> - - <com.google.android.material.textfield.TextInputEditText - android:id="@android:id/text1" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:maxLength="255" - android:inputType="textCapSentences"/> - - </com.google.android.material.textfield.TextInputLayout> -</FrameLayout> diff --git a/res/layout/dialog_sorting.xml b/res/layout/dialog_sorting.xml deleted file mode 100644 index d8cb7364c..000000000 --- a/res/layout/dialog_sorting.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2018 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical"> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:paddingStart="?android:attr/listPreferredItemPaddingStart" - android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" - android:paddingTop="?android:attr/listPreferredItemPaddingStart" - android:paddingBottom="?android:attr/listPreferredItemPaddingStart" - android:textAllCaps="true" - android:text="@string/sort_dimension_dialog_title" - android:textAppearance="@style/SortTitle"/> - - <ListView - android:id="@+id/sorting_dialog_list" - android:layout_width="match_parent" - android:layout_height="wrap_content"/> - -</LinearLayout> diff --git a/res/layout/directory_app_bar.xml b/res/layout/directory_app_bar.xml deleted file mode 100644 index ad80ec201..000000000 --- a/res/layout/directory_app_bar.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2018 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<com.google.android.material.appbar.AppBarLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:id="@+id/app_bar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="?android:attr/colorBackground"> - - <com.google.android.material.appbar.CollapsingToolbarLayout - android:id="@+id/collapsing_toolbar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:elevation="3dp" - app:titleEnabled="false" - app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed"> - - <androidx.core.widget.NestedScrollView - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <include layout="@layout/directory_header" /> - - </androidx.core.widget.NestedScrollView> - - <androidx.appcompat.widget.Toolbar - android:id="@+id/toolbar" - android:layout_width="match_parent" - android:layout_height="?android:attr/actionBarSize" - android:layout_margin="@dimen/search_bar_margin" - android:background="?android:attr/colorBackground" - android:theme="?actionBarTheme" - android:popupTheme="?actionBarPopupTheme" - android:elevation="@dimen/search_bar_elevation" - app:collapseContentDescription="@string/button_back" - app:titleTextAppearance="@style/ToolbarTitle" - app:layout_collapseMode="pin"> - - <TextView - android:id="@+id/searchbar_title" - android:layout_width="match_parent" - android:layout_height="?android:attr/actionBarSize" - android:gravity="center_vertical" - android:text="@string/search_bar_hint" - android:textAppearance="@style/SearchBarTitle" /> - - </androidx.appcompat.widget.Toolbar> - - </com.google.android.material.appbar.CollapsingToolbarLayout> - -</com.google.android.material.appbar.AppBarLayout>
\ No newline at end of file diff --git a/res/layout/directory_header.xml b/res/layout/directory_header.xml deleted file mode 100644 index af730829f..000000000 --- a/res/layout/directory_header.xml +++ /dev/null @@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2018 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:id="@+id/directory_header" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical"> - - <com.android.documentsui.HorizontalBreadcrumb - android:id="@+id/horizontal_breadcrumb" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="?android:attr/colorBackground"/> - - <!-- used for search chip. --> - <include layout="@layout/search_chip_row"/> - - <LinearLayout - android:id="@+id/tabs_container" - android:theme="@style/TabTheme" - android:clipToPadding="true" - android:clipChildren="true" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingLeft="@dimen/profile_tab_padding" - android:paddingRight="@dimen/profile_tab_padding" - android:orientation="vertical"> - - <com.google.android.material.tabs.TabLayout - android:id="@+id/tabs" - android:background="@android:color/transparent" - android:layout_width="match_parent" - android:layout_height="wrap_content" - app:tabMaxWidth="0dp" - app:tabGravity="fill" - app:tabMode="fixed" - app:tabIndicatorColor="?android:attr/colorAccent" - app:tabIndicatorHeight="@dimen/tab_selector_indicator_height" - app:tabSelectedTextColor="@color/tab_selected_text_color" - app:tabTextAppearance="@style/TabTextAppearance" - app:tabTextColor="@color/tab_unselected_text_color"/> - <View - android:id="@+id/tab_separator" - android:layout_width="match_parent" - android:layout_height="1dp" - android:background="?android:attr/listDivider"/> - </LinearLayout> - - <!-- used for apps row. --> - <include layout="@layout/apps_row"/> - - <LinearLayout - android:id="@+id/header_container" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginStart="@dimen/root_info_header_horizontal_padding" - android:layout_marginEnd="@dimen/root_info_header_horizontal_padding" - android:minHeight="@dimen/root_info_header_height" - android:accessibilityHeading="true"> - - <TextView - android:id="@+id/header_title" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_weight="1" - android:textAppearance="@style/SectionHeader" - android:maxLines="1" - android:ellipsize="end" - android:gravity="start|center_vertical"/> - - <androidx.appcompat.widget.ActionMenuView - android:id="@+id/sub_menu" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="end|center_vertical"/> - - </LinearLayout> - - <!-- column headers are empty on small screens, in portrait or in grid mode. --> - <include layout="@layout/column_headers"/> - -</LinearLayout>
\ No newline at end of file diff --git a/res/layout/drag_shadow_layout.xml b/res/layout/drag_shadow_layout.xml deleted file mode 100644 index 591e81375..000000000 --- a/res/layout/drag_shadow_layout.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<!-- Transparent container so shadow layer can be drawn --> -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:padding="8dp" - android:background="@color/item_drag_shadow_container_background"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingStart="12dp" - android:paddingEnd="12dp" - android:orientation="horizontal" - android:gravity="center_vertical" - android:background="@drawable/drag_shadow_background"> - - <include layout="@layout/drop_badge"/> - - <TextView - android:id="@android:id/title" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:maxLines="1" - android:ellipsize="end" - android:textAlignment="viewStart" - android:textAppearance="@style/Subhead" - android:paddingStart="6dp" - android:paddingBottom="1dp"/> - - </LinearLayout> -</LinearLayout> diff --git a/res/layout/drawer_layout.xml b/res/layout/drawer_layout.xml deleted file mode 100644 index d08c17d9f..000000000 --- a/res/layout/drawer_layout.xml +++ /dev/null @@ -1,102 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<!-- CoordinatorLayout is necessary for various components (e.g. Snackbars, and - floating action buttons) to operate correctly. --> -<androidx.coordinatorlayout.widget.CoordinatorLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:id="@+id/coordinator_layout"> - - <androidx.drawerlayout.widget.DrawerLayout - android:id="@+id/drawer_layout" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <androidx.coordinatorlayout.widget.CoordinatorLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical"> - - <FrameLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - app:layout_behavior="@string/scrolling_behavior"> - - <FrameLayout - android:id="@+id/container_directory" - android:clipToPadding="false" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_weight="1" /> - - <FrameLayout - android:id="@+id/container_search_fragment" - android:clipToPadding="false" - android:layout_width="match_parent" - android:layout_height="match_parent" /> - - <!-- Drawer edge is a placeholder view used to capture hovering - event on view edge to open the drawer. (b/28345294) --> - <View - android:id="@+id/drawer_edge" - android:background="@android:color/transparent" - android:layout_width="@dimen/drawer_edge_width" - android:layout_height="match_parent"/> - </FrameLayout> - - <androidx.coordinatorlayout.widget.CoordinatorLayout - android:id="@+id/container_save" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_gravity="bottom|center_horizontal" - android:background="?android:attr/colorBackgroundFloating" - android:elevation="8dp" /> - - <include layout="@layout/directory_app_bar"/> - - </androidx.coordinatorlayout.widget.CoordinatorLayout> - - <LinearLayout - android:id="@+id/drawer_roots" - android:layout_width="256dp" - android:layout_height="match_parent" - android:layout_gravity="start" - android:orientation="vertical" - android:elevation="0dp" - android:background="?android:attr/colorBackground"> - - <androidx.appcompat.widget.Toolbar - android:id="@+id/roots_toolbar" - android:layout_width="match_parent" - android:layout_height="?android:attr/actionBarSize" - android:background="?android:attr/colorBackground" - android:elevation="0dp" - app:titleTextAppearance="@style/DrawerMenuTitle" - app:titleTextColor="?android:colorAccent"/> - - <FrameLayout - android:id="@+id/container_roots" - android:layout_width="match_parent" - android:layout_height="0dp" - android:layout_weight="1" /> - - </LinearLayout> - - </androidx.drawerlayout.widget.DrawerLayout> -</androidx.coordinatorlayout.widget.CoordinatorLayout> diff --git a/res/layout/drop_badge.xml b/res/layout/drop_badge.xml deleted file mode 100644 index e17fa1ce0..000000000 --- a/res/layout/drop_badge.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<com.android.documentsui.DropBadgeView - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@android:id/icon" - android:layout_width="26dp" - android:layout_height="26dp" - android:scaleType="centerInside" - android:contentDescription="@null" - android:duplicateParentState="true"/>
\ No newline at end of file diff --git a/res/layout/fixed_layout.xml b/res/layout/fixed_layout.xml deleted file mode 100644 index fb2cb2452..000000000 --- a/res/layout/fixed_layout.xml +++ /dev/null @@ -1,111 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<!-- CoordinatorLayout is necessary for various components (e.g. Snackbars, and - floating action buttons) to operate correctly. --> -<androidx.coordinatorlayout.widget.CoordinatorLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:id="@+id/coordinator_layout" - android:focusable="true"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical"> - - <androidx.appcompat.widget.Toolbar - android:id="@+id/toolbar" - android:layout_width="match_parent" - android:layout_height="?android:attr/actionBarSize" - android:layout_margin="@dimen/search_bar_margin" - android:background="?android:attr/colorBackground" - android:elevation="3dp" - android:theme="?actionBarTheme" - android:popupTheme="?actionBarPopupTheme" - app:collapseContentDescription="@string/button_back" - app:titleTextAppearance="@style/ToolbarTitle"> - - <TextView - android:id="@+id/searchbar_title" - android:layout_width="match_parent" - android:layout_height="?android:attr/actionBarSize" - android:layout_marginStart="@dimen/search_bar_text_margin_start" - android:layout_marginEnd="@dimen/search_bar_text_margin_end" - android:paddingStart="@dimen/search_bar_icon_padding" - android:gravity="center_vertical" - android:text="@string/search_bar_hint" - android:textAppearance="@style/SearchBarTitle" - android:drawableStart="@drawable/ic_menu_search" - android:drawablePadding="@dimen/search_bar_icon_padding"/> - - </androidx.appcompat.widget.Toolbar> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="0dp" - android:layout_weight="1" - android:orientation="horizontal" - android:baselineAligned="false"> - - <FrameLayout - android:id="@+id/container_roots" - android:layout_width="256dp" - android:layout_height="match_parent" /> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical" - android:elevation="8dp"> - - <include layout="@layout/directory_header" /> - - <FrameLayout - android:layout_width="match_parent" - android:layout_height="0dp" - android:layout_weight="1"> - - <FrameLayout - android:id="@+id/container_directory" - android:clipToPadding="false" - android:layout_width="match_parent" - android:layout_height="match_parent" /> - - <FrameLayout - android:id="@+id/container_search_fragment" - android:clipToPadding="false" - android:layout_width="match_parent" - android:layout_height="match_parent" /> - - </FrameLayout> - - <androidx.coordinatorlayout.widget.CoordinatorLayout - android:id="@+id/container_save" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="?android:attr/colorBackgroundFloating" - android:elevation="8dp" /> - - </LinearLayout> - - </LinearLayout> - - </LinearLayout> - -</androidx.coordinatorlayout.widget.CoordinatorLayout> diff --git a/res/layout/fragment_directory.xml b/res/layout/fragment_directory.xml deleted file mode 100644 index 015039a6a..000000000 --- a/res/layout/fragment_directory.xml +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<com.android.documentsui.dirlist.AnimationView - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="?android:attr/colorBackground" - android:outlineProvider="bounds" - android:elevation="4dp" - android:orientation="vertical"> - - <ProgressBar - android:id="@+id/progressbar" - android:layout_width="match_parent" - android:layout_height="@dimen/progress_bar_height" - android:indeterminate="true" - style="@style/TrimmedHorizontalProgressBar" - android:visibility="gone"/> - - <com.android.documentsui.dirlist.DocumentsSwipeRefreshLayout - android:id="@+id/refresh_layout" - android:background="@android:color/transparent" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/dir_list" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingStart="0dp" - android:paddingEnd="0dp" - android:paddingTop="0dp" - android:paddingBottom="0dp" - android:clipToPadding="false" - android:scrollbars="none" - android:drawSelectorOnTop="true" - app:fastScrollEnabled="false"/> - - </com.android.documentsui.dirlist.DocumentsSwipeRefreshLayout> - -</com.android.documentsui.dirlist.AnimationView> diff --git a/res/layout/fragment_pick.xml b/res/layout/fragment_pick.xml deleted file mode 100644 index cba4ecb9a..000000000 --- a/res/layout/fragment_pick.xml +++ /dev/null @@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2014 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="horizontal" - android:baselineAligned="false" - android:gravity="center_vertical|end" - android:paddingStart="@dimen/bottom_bar_padding" - android:paddingEnd="@dimen/bottom_bar_padding"> - - <com.google.android.material.button.MaterialButton - android:id="@android:id/button2" - style="?attr/materialButtonOutlinedStyle" - app:cornerRadius="@dimen/button_corner_radius" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginStart="4dp" - android:layout_marginEnd="4dp" - android:text="@android:string/cancel" /> - - <FrameLayout - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <com.google.android.material.button.MaterialButton - android:id="@android:id/button1" - style="?attr/materialButtonStyle" - app:cornerRadius="@dimen/button_corner_radius" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginStart="4dp" - android:backgroundTint="@color/fragment_pick_button_background_color" - android:textColor="@color/fragment_pick_button_text_color" - android:layout_marginEnd="4dp" /> - - <!-- Handles touch events when button1 is disabled. --> - <FrameLayout - android:id="@+id/pick_button_overlay" - android:importantForAccessibility="no" - android:layout_width="match_parent" - android:layout_height="match_parent" /> - - </FrameLayout> - -</LinearLayout> diff --git a/res/layout/fragment_roots.xml b/res/layout/fragment_roots.xml deleted file mode 100644 index af7861992..000000000 --- a/res/layout/fragment_roots.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<com.android.documentsui.sidebar.RootsList xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/roots_list" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingTop="8dp" - android:keyboardNavigationCluster="true" - android:divider="@null"/> diff --git a/res/layout/fragment_save.xml b/res/layout/fragment_save.xml deleted file mode 100644 index 0f46b2a9c..000000000 --- a/res/layout/fragment_save.xml +++ /dev/null @@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingStart="@dimen/list_item_padding" - android:paddingEnd="@dimen/bottom_bar_padding" - android:orientation="horizontal" - android:baselineAligned="false" - android:gravity="center_vertical" - android:minHeight="?android:attr/listPreferredItemHeightSmall"> - - <FrameLayout - android:layout_width="@dimen/icon_size" - android:layout_height="@dimen/icon_size" - android:layout_marginEnd="16dp"> - - <ImageView - android:id="@android:id/icon" - android:layout_width="@dimen/root_icon_size" - android:layout_height="match_parent" - android:scaleType="centerInside" - android:contentDescription="@null" /> - - </FrameLayout> - - <EditText - android:id="@android:id/title" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="1" - android:singleLine="true" - android:selectAllOnFocus="true" /> - - <FrameLayout - android:layout_width="wrap_content" - android:layout_height="match_parent"> - - <com.google.android.material.button.MaterialButton - android:id="@android:id/button1" - style="@style/Widget.MaterialComponents.Button.UnelevatedButton" - app:cornerRadius="@dimen/button_corner_radius" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginStart="4dp" - android:layout_marginEnd="4dp" - android:text="@string/menu_save"/> - - <ProgressBar - android:id="@android:id/progress" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:visibility="gone" - android:indeterminate="true" - android:padding="8dp" - style="?android:attr/progressBarStyle" /> - - </FrameLayout> - -</LinearLayout> diff --git a/res/layout/fragment_search.xml b/res/layout/fragment_search.xml deleted file mode 100644 index 02baffdd3..000000000 --- a/res/layout/fragment_search.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2019 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="?android:attr/colorBackground"> - - <!-- used for search chip. --> - <include layout="@layout/search_chip_row"/> - - <ListView - android:id="@+id/history_list" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:divider="@null"/> - -</LinearLayout>
\ No newline at end of file diff --git a/res/layout/inspector_action_view.xml b/res/layout/inspector_action_view.xml deleted file mode 100644 index 422638348..000000000 --- a/res/layout/inspector_action_view.xml +++ /dev/null @@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <include - layout="@layout/inspector_section_title" - android:id="@+id/action_header" /> - - <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/default_app_info" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingBottom="10dp" - android:layout_below="@id/action_header"> - - <ImageView - android:id="@+id/app_icon" - android:paddingLeft="5dp" - android:layout_width="50dp" - android:layout_height="50dp" /> - - <TextView - android:id="@+id/app_name" - android:paddingLeft="16dp" - android:paddingBottom="10dp" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_toRightOf="@id/app_icon" - android:layout_centerVertical="true"/> - - <ImageButton - android:id="@+id/inspector_action_button" - android:layout_width="50dp" - android:layout_height="50dp" - android:layout_alignParentRight="true" - android:layout_centerVertical="true" - android:background="@null"/> - - </RelativeLayout> - -</RelativeLayout> diff --git a/res/layout/inspector_activity.xml b/res/layout/inspector_activity.xml deleted file mode 100644 index 8763351c9..000000000 --- a/res/layout/inspector_activity.xml +++ /dev/null @@ -1,119 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<androidx.coordinatorlayout.widget.CoordinatorLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:id="@+id/inspector_root" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <com.google.android.material.appbar.AppBarLayout - android:id="@+id/app_bar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="?android:colorBackground"> - - <com.google.android.material.appbar.CollapsingToolbarLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:minHeight="?android:attr/actionBarSize" - app:titleEnabled="false" - app:statusBarScrim="@android:color/transparent" - app:layout_scrollFlags="scroll|exitUntilCollapsed"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical"> - - <android.widget.Space - android:layout_width="match_parent" - android:layout_height="?android:attr/actionBarSize"/> - - <com.android.documentsui.inspector.HeaderView - android:id="@+id/inspector_header_view" - android:layout_width="match_parent" - android:layout_height="@dimen/inspector_header_height" - app:layout_collapseMode="parallax"/> - </LinearLayout> - - <androidx.appcompat.widget.Toolbar - android:id="@+id/toolbar" - android:layout_width="match_parent" - android:layout_height="?android:attr/actionBarSize" - android:background="?android:attr/colorBackground" - android:theme="?actionBarTheme" - app:title="@string/inspector_title" - app:titleTextAppearance="@style/ToolbarTitle" - app:layout_collapseMode="pin"> - </androidx.appcompat.widget.Toolbar> - </com.google.android.material.appbar.CollapsingToolbarLayout> - </com.google.android.material.appbar.AppBarLayout> - - <androidx.core.widget.NestedScrollView - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="match_parent" - app:behavior_overlapTop="10dp" - app:layout_behavior="@string/appbar_scrolling_view_behavior"> - - <LinearLayout - android:id="@+id/inspector_container" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="@drawable/bottom_sheet_dialog_background" - android:paddingBottom="5dp"> - - <com.android.documentsui.inspector.DetailsView - android:id="@+id/inspector_details_view" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="wrap_content"/> - - <com.android.documentsui.inspector.MediaView - android:id="@+id/inspector_media_view" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="wrap_content"/> - - <com.android.documentsui.inspector.actions.ActionView - android:id="@+id/inspector_show_in_provider_view" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:visibility="gone"/> - - <com.android.documentsui.inspector.actions.ActionView - android:id="@+id/inspector_app_defaults_view" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:visibility="gone"/> - - <com.android.documentsui.inspector.DebugView - android:id="@+id/inspector_debug_view" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingTop="20dp" - android:visibility="gone" /> - - </LinearLayout> - </androidx.core.widget.NestedScrollView> - -</androidx.coordinatorlayout.widget.CoordinatorLayout> diff --git a/res/layout/inspector_header.xml b/res/layout/inspector_header.xml deleted file mode 100644 index 94a092790..000000000 --- a/res/layout/inspector_header.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <ImageView - android:id="@+id/inspector_thumbnail" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:scaleType="fitCenter" - android:alpha="0.0" - android:background="?android:colorBackgroundFloating" /> - -</RelativeLayout> diff --git a/res/layout/inspector_section_title.xml b/res/layout/inspector_section_title.xml deleted file mode 100644 index 358b9613c..000000000 --- a/res/layout/inspector_section_title.xml +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_height="wrap_content" - android:layout_width="match_parent" - android:orientation="vertical" - android:divider="@drawable/inspector_separator" - android:showDividers="beginning" - android:paddingStart="10dp" - android:paddingEnd="10dp"> - - <!--Empty view for keeping divider when title is gone--> - <android.widget.Space - android:layout_height="wrap_content" - android:layout_width="wrap_content"> - </android.widget.Space > - - <TextView - android:layout_height="match_parent" - android:layout_width="match_parent" - android:id="@+id/inspector_header_title" - android:paddingStart="16dp" - android:paddingEnd="16dp" - android:paddingTop="25dp" - android:paddingBottom="25dp" - android:layout_gravity="center_vertical" - android:clickable="false" - android:textAppearance="@style/ToolbarTitle" - android:textAlignment="viewStart" - android:textIsSelectable="true"/> -</LinearLayout>
\ No newline at end of file diff --git a/res/layout/item_dir_grid.xml b/res/layout/item_dir_grid.xml deleted file mode 100644 index bd690d4d3..000000000 --- a/res/layout/item_dir_grid.xml +++ /dev/null @@ -1,116 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<!-- FYI: This layout has an extra top level container view that was previously used - to allow for the insertion of debug info. The debug info is now gone, but the - container remains because there is a high likelihood of UI regression relating - to focus and selection states, some of which are specific to keyboard - when touch mode is not enable. So, if you, heroic engineer of the future, - decide to rip these out, please be sure to check out focus and keyboards. --> -<com.google.android.material.card.MaterialCardView - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:id="@+id/item_root" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_margin="4dp" - android:foreground="?android:attr/selectableItemBackground" - android:clickable="true" - android:focusable="true" - app:cardElevation="0dp"> - - <com.google.android.material.card.MaterialCardView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:elevation="0dp" - android:duplicateParentState="true" - app:cardElevation="0dp" - app:strokeWidth="1dp" - app:strokeColor="?android:strokeColor"> - - <!-- The height is 48px. - paddingTop (9dp) + @dimen/check_icon_size (30dp) + paddingBottom (9dp) --> - <LinearLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="horizontal" - android:background="?android:attr/colorBackground" - android:gravity="center_vertical"> - - <FrameLayout - android:id="@+id/icon" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:pointerIcon="hand" - android:paddingBottom="9dp" - android:paddingStart="9dp" - android:paddingEnd="8dp" - android:paddingTop="9dp"> - - <ImageView - android:id="@+id/icon_mime_sm" - android:layout_width="@dimen/grid_item_icon_size" - android:layout_height="@dimen/grid_item_icon_size" - android:layout_gravity="center" - android:contentDescription="@null" - android:scaleType="centerInside"/> - - <ImageView - android:id="@+id/icon_check" - android:layout_width="@dimen/check_icon_size" - android:layout_height="@dimen/check_icon_size" - android:alpha="0" - android:contentDescription="@null" - android:scaleType="fitCenter" - android:src="@drawable/ic_check_circle"/> - - </FrameLayout> - - <ImageView - android:id="@+id/icon_profile_badge" - android:layout_height="@dimen/briefcase_icon_size" - android:layout_width="@dimen/briefcase_icon_size" - android:layout_marginEnd="@dimen/briefcase_icon_margin" - android:src="@drawable/ic_briefcase" - android:tint="?android:attr/colorAccent" - android:contentDescription="@string/a11y_work"/> - - <TextView - android:id="@android:id/title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:ellipsize="end" - android:singleLine="true" - android:textAlignment="viewStart" - android:textAppearance="@style/CardPrimaryText" - android:layout_marginBottom="9dp" - android:layout_marginEnd="12dp" - android:layout_marginTop="9dp"/> - - </LinearLayout> - - </com.google.android.material.card.MaterialCardView> - - <!-- An overlay that draws the item border when it is focused. --> - <View - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="@drawable/item_doc_grid_border_rounded" - android:contentDescription="@null" - android:duplicateParentState="true"/> - -</com.google.android.material.card.MaterialCardView>
\ No newline at end of file diff --git a/res/layout/item_doc_grid.xml b/res/layout/item_doc_grid.xml deleted file mode 100644 index d654571eb..000000000 --- a/res/layout/item_doc_grid.xml +++ /dev/null @@ -1,209 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<!-- FYI: This layout has an extra top level container view that was previously used - to allow for the insertion of debug info. The debug info is now gone, but the - container remains because there is a high likelihood of UI regression relating - to focus and selection states, some of which are specific to keyboard - when touch mode is not enable. So, if you, heroic engineer of the future, - decide to rip these out, please be sure to check out focus and keyboards. --> -<com.google.android.material.card.MaterialCardView - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:id="@+id/item_root" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_margin="4dp" - android:foreground="?android:attr/selectableItemBackground" - android:clickable="true" - android:focusable="true" - app:cardElevation="0dp"> - - <com.google.android.material.card.MaterialCardView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:elevation="0dp" - android:duplicateParentState="true" - app:cardElevation="0dp" - app:strokeWidth="1dp" - app:strokeColor="?android:strokeColor"> - - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:duplicateParentState="true"> - - <!-- Main item thumbnail. Comprised of two overlapping images, the - visibility of which is controlled by code in - DirectoryFragment.java. --> - - <FrameLayout - android:id="@+id/thumbnail" - android:background="?attr/gridItemTint" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <com.android.documentsui.GridItemThumbnail - android:id="@+id/icon_thumb" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:scaleType="centerCrop" - android:contentDescription="@null" - android:tint="?attr/gridItemTint" - android:tintMode="src_over"/> - - <com.android.documentsui.GridItemThumbnail - android:id="@+id/icon_mime_lg" - android:layout_width="@dimen/icon_size" - android:layout_height="@dimen/icon_size" - android:layout_gravity="center" - android:scaleType="fitCenter" - android:contentDescription="@null"/> - - </FrameLayout> - - <FrameLayout - android:id="@+id/preview_icon" - android:layout_width="@dimen/button_touch_size" - android:layout_height="@dimen/button_touch_size" - android:layout_alignParentTop="true" - android:layout_alignParentEnd="true" - android:pointerIcon="hand" - android:focusable="true" - android:clickable="true"> - - <ImageView - android:layout_width="@dimen/zoom_icon_size" - android:layout_height="@dimen/zoom_icon_size" - android:padding="2dp" - android:layout_gravity="center" - android:background="@drawable/circle_button_background" - android:scaleType="fitCenter" - android:src="@drawable/ic_zoom_out"/> - - </FrameLayout> - - <!-- Item nameplate. Has a mime-type icon and some text fields (title, - size, mod-time, etc). --> - - <LinearLayout - android:id="@+id/nameplate" - android:background="?android:attr/colorBackground" - android:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@id/thumbnail"> - - <FrameLayout - android:id="@+id/icon" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_centerVertical="true" - android:pointerIcon="hand" - android:paddingTop="8dp" - android:paddingBottom="8dp" - android:paddingStart="12dp" - android:paddingEnd="8dp"> - - <ImageView - android:id="@+id/icon_mime_sm" - android:layout_width="@dimen/grid_item_icon_size" - android:layout_height="@dimen/grid_item_icon_size" - android:layout_gravity="center" - android:scaleType="center" - android:contentDescription="@null"/> - - <ImageView - android:id="@+id/icon_check" - android:src="@drawable/ic_check_circle" - android:alpha="0" - android:layout_width="@dimen/check_icon_size" - android:layout_height="@dimen/check_icon_size" - android:layout_gravity="center" - android:scaleType="fitCenter" - android:contentDescription="@null"/> - - </FrameLayout> - - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingBottom="8dp" - android:paddingTop="8dp" - android:paddingEnd="12dp"> - - <ImageView - android:id="@+id/icon_profile_badge" - android:layout_height="@dimen/briefcase_icon_size" - android:layout_width="@dimen/briefcase_icon_size" - android:layout_marginEnd="@dimen/briefcase_icon_margin" - android:layout_alignTop="@android:id/title" - android:layout_alignBottom="@android:id/title" - android:gravity="center_vertical" - android:src="@drawable/ic_briefcase" - android:tint="?android:attr/colorAccent" - android:contentDescription="@string/a11y_work"/> - - <TextView - android:id="@android:id/title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentTop="true" - android:layout_toEndOf="@+id/icon_profile_badge" - android:singleLine="true" - android:ellipsize="end" - android:textAlignment="viewStart" - android:textAppearance="@style/CardPrimaryText"/> - - <TextView - android:id="@+id/details" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_below="@android:id/title" - android:layout_marginEnd="4dp" - android:singleLine="true" - android:ellipsize="end" - android:textAlignment="viewStart" - android:textAppearance="@style/ItemCaptionText" /> - - <TextView - android:id="@+id/date" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_below="@android:id/title" - android:layout_toEndOf="@id/details" - android:singleLine="true" - android:ellipsize="end" - android:textAlignment="viewStart" - android:textAppearance="@style/ItemCaptionText" /> - - </RelativeLayout> - - </LinearLayout> - - </RelativeLayout> - - </com.google.android.material.card.MaterialCardView> - - <!-- An overlay that draws the item border when it is focused. --> - <View - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="@drawable/item_doc_grid_border_rounded" - android:contentDescription="@null" - android:duplicateParentState="true"/> - -</com.google.android.material.card.MaterialCardView> diff --git a/res/layout/item_doc_header_message.xml b/res/layout/item_doc_header_message.xml deleted file mode 100644 index 4b2cf355f..000000000 --- a/res/layout/item_doc_header_message.xml +++ /dev/null @@ -1,116 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<FrameLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:id="@+id/item_root" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <com.google.android.material.card.MaterialCardView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_margin="4dp" - android:elevation="0dp" - android:duplicateParentState="true" - app:cardElevation="0dp" - app:strokeWidth="1dp" - app:strokeColor="?android:strokeColor"> - - <LinearLayout - android:layout_height="wrap_content" - android:layout_width="match_parent" - android:background="?android:attr/colorBackground" - android:orientation="vertical"> - - <LinearLayout - android:animateLayoutChanges="true" - android:id="@+id/message_container" - android:layout_height="wrap_content" - android:layout_width="match_parent" - android:minHeight="60dp" - android:orientation="horizontal"> - - <ImageView - android:contentDescription="@null" - android:id="@+id/message_icon" - android:layout_height="@dimen/icon_size" - android:layout_width="@dimen/icon_size" - android:layout_margin="8dp" - android:layout_gravity="center" - android:scaleType="centerInside"/> - - <LinearLayout - android:layout_height="wrap_content" - android:layout_width="match_parent" - android:minHeight="48dp" - android:paddingTop="12dp" - android:paddingEnd="12dp" - android:gravity="center_vertical" - android:orientation="vertical"> - - <TextView - android:id="@+id/message_title" - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:textSize="16sp" - android:textAppearance="@style/DrawerMenuPrimary"/> - - <TextView - android:id="@+id/message_subtitle" - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:selectAllOnFocus="true" - android:textSize="12sp"/> - - <TextView - android:id="@+id/message_textview" - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:selectAllOnFocus="true"/> - - <Button - android:id="@+id/dismiss_button" - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:layout_gravity="end" - android:text="@android:string/ok" - style="@style/DialogTextButton"/> - - </LinearLayout> - </LinearLayout> - - <LinearLayout - android:id="@+id/action_view" - android:layout_height="wrap_content" - android:layout_width="match_parent" - android:orientation="vertical"> - - <Button - android:id="@+id/action_button" - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:layout_marginEnd="16dp" - android:layout_gravity="end" - style="@style/DialogTextButton"/> - - </LinearLayout> - - </LinearLayout> - - </com.google.android.material.card.MaterialCardView> -</FrameLayout> diff --git a/res/layout/item_doc_inflated_message.xml b/res/layout/item_doc_inflated_message.xml deleted file mode 100644 index abfdbfd10..000000000 --- a/res/layout/item_doc_inflated_message.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<FrameLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@android:id/empty" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="?android:attr/colorBackground" - android:focusable="true"> - - <include android:id="@+id/content" layout="@layout/item_doc_inflated_message_content"/> - <include android:id="@+id/cross_profile" - layout="@layout/item_doc_inflated_message_cross_profile"/> -</FrameLayout> diff --git a/res/layout/item_doc_inflated_message_content.xml b/res/layout/item_doc_inflated_message_content.xml deleted file mode 100644 index 0635e1654..000000000 --- a/res/layout/item_doc_inflated_message_content.xml +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2020 The Android Open Source Project - ~ - ~ Licensed under the Apache License, Version 2.0 (the "License"); - ~ you may not use this file except in compliance with the License. - ~ You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, software - ~ distributed under the License is distributed on an "AS IS" BASIS, - ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - ~ See the License for the specific language governing permissions and - ~ limitations under the License. - --> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/content" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical"> - - <ImageView - android:id="@+id/artwork" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginTop="25dp" - android:layout_marginBottom="25dp" - android:scaleType="fitCenter" - android:maxHeight="250dp" - android:adjustViewBounds="true" - android:gravity="bottom|center_horizontal" - android:contentDescription="@null"/> - - <TextView - android:id="@+id/message" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginBottom="25dp" - android:gravity="center_horizontal" - style="?android:attr/textAppearanceListItem"/> - -</LinearLayout>
\ No newline at end of file diff --git a/res/layout/item_doc_inflated_message_cross_profile.xml b/res/layout/item_doc_inflated_message_cross_profile.xml deleted file mode 100644 index 3cc0d7ce2..000000000 --- a/res/layout/item_doc_inflated_message_cross_profile.xml +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2020 The Android Open Source Project - ~ - ~ Licensed under the Apache License, Version 2.0 (the "License"); - ~ you may not use this file except in compliance with the License. - ~ You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, software - ~ distributed under the License is distributed on an "AS IS" BASIS, - ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - ~ See the License for the specific language governing permissions and - ~ limitations under the License. - --> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical" - android:gravity="center_horizontal" - android:paddingTop="@dimen/item_doc_inflated_message_padding_top" - android:paddingStart="72dp" - android:paddingEnd="72dp"> - - <ProgressBar - android:id="@+id/cross_profile_progress" - style="@android:style/Widget.Material.Light.ProgressBar" - android:visibility="gone" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:indeterminate="true" - android:indeterminateTint="?attr/colorAccent"/> - - <LinearLayout - android:id="@+id/cross_profile_content" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:orientation="vertical" - android:gravity="center_horizontal"> - - <ImageView - android:id="@+id/artwork" - android:layout_width="24dp" - android:layout_height="24dp"/> - <TextView - android:id="@+id/title" - android:layout_marginTop="8dp" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_horizontal" - android:textAppearance="@style/EmptyStateTitleText"/> - <TextView - android:id="@+id/message" - android:layout_marginTop="@dimen/cross_profile_button_message_margin_top" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center_horizontal" - android:textAppearance="@style/EmptyStateMessageText"/> - <Button - android:id="@+id/button" - android:layout_marginTop="16dp" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - app:cornerRadius="@dimen/cross_profile_button_corner_radius" - app:strokeWidth="@dimen/cross_profile_button_stroke_width" - app:strokeColor="@color/work_profile_button_stroke_color" - style="@style/EmptyStateButton"/> - </LinearLayout> -</LinearLayout> diff --git a/res/layout/item_doc_list.xml b/res/layout/item_doc_list.xml deleted file mode 100644 index 77494a29c..000000000 --- a/res/layout/item_doc_list.xml +++ /dev/null @@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?><!-- - Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:id="@+id/item_root" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="@drawable/list_item_background" - android:foreground="?android:attr/selectableItemBackground" - android:clickable="true" - android:focusable="true" - android:orientation="vertical"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:baselineAligned="false" - android:gravity="center_vertical" - android:minHeight="@dimen/list_item_height" - android:orientation="horizontal"> - - <FrameLayout - android:id="@+id/icon" - android:pointerIcon="hand" - android:layout_width="@dimen/list_item_width" - android:layout_height="@dimen/list_item_height" - android:paddingBottom="@dimen/list_item_icon_padding" - android:paddingTop="@dimen/list_item_icon_padding" - android:paddingEnd="16dp" - android:paddingStart="@dimen/list_item_padding"> - - <com.google.android.material.card.MaterialCardView - android:layout_width="match_parent" - android:layout_height="match_parent" - app:cardBackgroundColor="@android:color/transparent" - app:cardElevation="0dp"> - - <ImageView - android:id="@+id/icon_mime" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:contentDescription="@null" - android:scaleType="centerInside" /> - - <ImageView - android:id="@+id/icon_thumb" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:contentDescription="@null" - android:scaleType="centerCrop" /> - - <ImageView - android:id="@+id/icon_check" - android:layout_width="@dimen/check_icon_size" - android:layout_height="@dimen/check_icon_size" - android:layout_gravity="center" - android:alpha="0" - android:contentDescription="@null" - android:scaleType="fitCenter" - android:src="@drawable/ic_check_circle" /> - - </com.google.android.material.card.MaterialCardView> - - </FrameLayout> - - <LinearLayout - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="1" - android:orientation="vertical" - android:layout_gravity="center_vertical" - android:layout_marginEnd="@dimen/list_item_padding"> - - <LinearLayout - android:layout_width="wrap_content" - android:layout_height="0dp" - android:layout_weight="1"> - - <ImageView - android:id="@+id/icon_profile_badge" - android:layout_height="@dimen/briefcase_icon_size" - android:layout_width="@dimen/briefcase_icon_size" - android:layout_marginEnd="@dimen/briefcase_icon_margin" - android:layout_gravity="center_vertical" - android:src="@drawable/ic_briefcase" - android:tint="?android:attr/colorAccent" - android:contentDescription="@string/a11y_work" /> - - <TextView - android:id="@android:id/title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:ellipsize="end" - android:singleLine="true" - android:textAlignment="viewStart" - android:textAppearance="?android:attr/textAppearanceListItem" /> - - </LinearLayout> - - <LinearLayout - android:id="@+id/line2" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:baselineAligned="false" - android:layout_marginTop="4dp" - android:gravity="center_vertical" - android:orientation="horizontal"> - - <TextView - android:id="@+id/metadata" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:ellipsize="end" - android:singleLine="true" - android:textAppearance="@style/ItemCaptionText" /> - - </LinearLayout> - - </LinearLayout> - - <FrameLayout - android:id="@+id/preview_icon" - android:layout_width="@dimen/list_item_width" - android:layout_height="@dimen/list_item_height" - android:padding="@dimen/list_item_icon_padding" - android:focusable="true" - android:clickable="true"> - - <ImageView - android:layout_width="@dimen/check_icon_size" - android:layout_height="@dimen/check_icon_size" - android:layout_gravity="center" - android:scaleType="fitCenter" - android:tint="?android:attr/colorControlNormal" - android:src="@drawable/ic_zoom_out" /> - - </FrameLayout> - - </LinearLayout> - - <View - android:layout_width="match_parent" - android:layout_height="1dp" - android:layout_marginStart="72dp" - android:layout_marginEnd="8dp" - android:background="?android:strokeColor" /> - -</LinearLayout>
\ No newline at end of file diff --git a/res/layout/item_history.xml b/res/layout/item_history.xml deleted file mode 100644 index 7bb76b35b..000000000 --- a/res/layout/item_history.xml +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2019 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:minHeight="?android:attr/listPreferredItemHeight" - android:paddingStart="?android:attr/listPreferredItemPaddingStart" - android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" - android:gravity="center_vertical"> - - <ImageView - android:layout_width="@dimen/button_touch_size" - android:layout_height="@dimen/button_touch_size" - android:src="@drawable/ic_history" - android:scaleType="centerInside"/> - - <TextView - android:id="@android:id/title" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_weight="1" - android:paddingStart="?android:attr/listPreferredItemPaddingStart" - android:textAppearance="?android:attr/textAppearanceListItem" - android:ellipsize="end" - android:singleLine="true" - android:gravity="center_vertical"/> - - <ImageView - android:id="@android:id/icon" - android:layout_width="@dimen/button_touch_size" - android:layout_height="@dimen/button_touch_size" - android:background="@drawable/generic_ripple_background" - android:src="@drawable/ic_action_clear" - android:scaleType="centerInside"/> - -</LinearLayout>
\ No newline at end of file diff --git a/res/layout/item_photo_grid.xml b/res/layout/item_photo_grid.xml deleted file mode 100644 index 4581d3d25..000000000 --- a/res/layout/item_photo_grid.xml +++ /dev/null @@ -1,141 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2018 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<!-- FYI: This layout has an extra top level container view that was previously used - to allow for the insertion of debug info. The debug info is now gone, but the - container remains because there is a high likelihood of UI regression relating - to focus and selection states, some of which are specific to keyboard - when touch mode is not enable. So, if you, heroic engineer of the future, - decide to rip these out, please be sure to check out focus and keyboards. --> -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical" - android:layout_margin="4dp" - android:background="@drawable/grid_item_background" - android:elevation="@dimen/grid_item_elevation" - android:focusable="true"> - - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:duplicateParentState="true"> - - <!-- Main item thumbnail. Comprised of two overlapping images, the - visibility of which is controlled by code in - DirectoryFragment.java. --> - - <FrameLayout - android:id="@+id/thumbnail" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <com.android.documentsui.GridItemThumbnail - android:id="@+id/icon_thumb" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:scaleType="centerCrop" - android:contentDescription="@null" - android:tint="?attr/gridItemTint" - android:tintMode="src_over"/> - - <com.android.documentsui.GridItemThumbnail - android:id="@+id/icon_mime_lg" - android:layout_width="@dimen/icon_size" - android:layout_height="@dimen/icon_size" - android:layout_gravity="center" - android:scaleType="fitCenter" - android:contentDescription="@null"/> - - </FrameLayout> - - <FrameLayout - android:layout_width="@dimen/button_touch_size" - android:layout_height="@dimen/button_touch_size" - android:layout_alignParentTop="true" - android:layout_alignParentStart="true" - android:pointerIcon="hand"> - - <ImageView - android:id="@+id/icon_check" - android:src="@drawable/ic_check_circle" - android:alpha="0" - android:layout_width="@dimen/check_icon_size" - android:layout_height="@dimen/check_icon_size" - android:layout_gravity="center" - android:scaleType="fitCenter" - android:contentDescription="@null"/> - - </FrameLayout> - - <FrameLayout - android:id="@+id/preview_icon" - android:layout_width="@dimen/button_touch_size" - android:layout_height="@dimen/button_touch_size" - android:layout_alignParentTop="true" - android:layout_alignParentEnd="true" - android:pointerIcon="hand" - android:focusable="true" - android:clickable="true"> - - <ImageView - android:layout_width="@dimen/zoom_icon_size" - android:layout_height="@dimen/zoom_icon_size" - android:padding="2dp" - android:layout_gravity="center" - android:background="@drawable/circle_button_background" - android:scaleType="fitCenter" - android:src="@drawable/ic_zoom_out"/> - - </FrameLayout> - - <FrameLayout - android:id="@+id/icon_profile_badge" - android:layout_width="@dimen/button_touch_size" - android:layout_height="@dimen/button_touch_size" - android:layout_alignParentBottom="true" - android:layout_alignParentEnd="true" - android:pointerIcon="hand"> - - <ImageView - android:id="@+id/icon_id" - android:layout_height="@dimen/briefcase_icon_size_photo" - android:layout_width="@dimen/briefcase_icon_size_photo" - android:src="@drawable/ic_briefcase_white" - android:tint="?android:attr/colorAccent" - android:padding="5dp" - android:background="@drawable/circle_button_background" - android:layout_gravity="center" - android:scaleType="fitCenter" - android:contentDescription="@string/a11y_work"/> - </FrameLayout> - - <!-- An overlay that draws the item border when it is focused. --> - <View - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignBottom="@id/thumbnail" - android:layout_alignTop="@id/thumbnail" - android:layout_alignLeft="@id/thumbnail" - android:layout_alignRight="@id/thumbnail" - android:contentDescription="@null" - android:background="@drawable/item_doc_grid_border" - android:duplicateParentState="true"/> - - </RelativeLayout> - -</LinearLayout> diff --git a/res/layout/item_root.xml b/res/layout/item_root.xml deleted file mode 100644 index 8d0f86bad..000000000 --- a/res/layout/item_root.xml +++ /dev/null @@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<com.android.documentsui.sidebar.RootItemView - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:minHeight="52dp" - android:paddingStart="24dp" - android:gravity="center_vertical" - android:orientation="horizontal" - android:baselineAligned="false" - android:background="@drawable/root_item_background"> - - <FrameLayout - android:layout_width="wrap_content" - android:layout_height="@dimen/icon_size" - android:duplicateParentState="true"> - - <ImageView - android:id="@android:id/icon" - android:layout_width="@dimen/root_icon_size" - android:layout_height="match_parent" - android:scaleType="centerInside" - android:contentDescription="@null" - android:duplicateParentState="true" /> - - </FrameLayout> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingStart="16dp" - android:paddingTop="8dp" - android:paddingBottom="8dp" - android:orientation="vertical" - android:layout_weight="1"> - - <TextView - android:id="@android:id/title" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:singleLine="true" - android:ellipsize="end" - android:textAlignment="viewStart" - android:textAppearance="@style/DrawerMenuPrimary" /> - - <TextView - android:id="@android:id/summary" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:singleLine="true" - android:ellipsize="end" - android:textAlignment="viewStart" - android:textAppearance="@style/DrawerMenuSecondary" /> - - </LinearLayout> - - <include layout="@layout/root_vertical_divider" /> - - <FrameLayout - android:id="@+id/action_icon_area" - android:layout_width="@dimen/button_touch_size" - android:layout_height="@dimen/button_touch_size" - android:paddingEnd="@dimen/grid_padding_horiz" - android:duplicateParentState="true" - android:visibility="gone"> - - <ImageView - android:id="@+id/action_icon" - android:focusable="false" - android:layout_width="@dimen/root_action_icon_size" - android:layout_height="match_parent" - android:layout_gravity="center" - android:scaleType="centerInside"/> - - </FrameLayout> - -</com.android.documentsui.sidebar.RootItemView> diff --git a/res/layout/item_root_header.xml b/res/layout/item_root_header.xml deleted file mode 100644 index f82b1577d..000000000 --- a/res/layout/item_root_header.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingTop="8dp" - android:paddingBottom="8dp" - android:gravity="center_vertical"> - - <TextView - android:id="@android:id/title" - android:paddingStart="64dp" - android:layout_width="wrap_content" - android:layout_height="44dp" - android:gravity="center_vertical" - style="@style/DrawerMenuHeader"/> - -</LinearLayout> diff --git a/res/layout/item_root_spacer.xml b/res/layout/item_root_spacer.xml deleted file mode 100644 index 16ecee7fd..000000000 --- a/res/layout/item_root_spacer.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2013 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingStart="@dimen/root_spacer_padding" - android:paddingTop="12dp" - android:paddingBottom="12dp"> - - <View - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="?android:attr/listDivider" /> - -</FrameLayout> diff --git a/res/layout/navigation_breadcrumb_item.xml b/res/layout/navigation_breadcrumb_item.xml deleted file mode 100644 index 93d3feb3f..000000000 --- a/res/layout/navigation_breadcrumb_item.xml +++ /dev/null @@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - - -<!-- - CoordinatorLayout is necessary for various components (e.g. Snackbars, and - floating action buttons) to operate correctly. ---> -<!-- - focusableInTouchMode is set in order to force key events to go to the activity's global key - callback, which is necessary for proper event routing. See BaseActivity.onKeyDown. ---> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:minHeight="48dp" - android:focusable="true" - android:gravity="center_vertical" - android:orientation="horizontal"> - - <TextView - android:id="@+id/breadcrumb_text" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:maxWidth="275dp" - android:gravity="center_vertical" - android:maxLines="1" - android:ellipsize="end" - android:textAppearance="@style/BreadcrumbText" - android:background="@drawable/breadcrumb_item_background" /> - - <ImageView - android:id="@+id/breadcrumb_arrow" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:src="@drawable/ic_breadcrumb_arrow"/> - -</LinearLayout>
\ No newline at end of file diff --git a/res/layout/root_vertical_divider.xml b/res/layout/root_vertical_divider.xml deleted file mode 100644 index 6b9c72341..000000000 --- a/res/layout/root_vertical_divider.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2018 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/vertical_divider" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:gravity="start|center_vertical" - android:orientation="horizontal" - android:paddingTop="@dimen/drawer_edge_width" - android:paddingBottom="@dimen/drawer_edge_width" - android:paddingStart="@dimen/grid_padding_horiz" - android:paddingEnd="@dimen/grid_padding_horiz" - android:visibility="gone"> - <View - android:layout_width="1dp" - android:layout_height="match_parent" - android:background="?android:attr/listDivider"/> -</LinearLayout>
\ No newline at end of file diff --git a/res/layout/search_chip_item.xml b/res/layout/search_chip_item.xml deleted file mode 100644 index 3ee00c290..000000000 --- a/res/layout/search_chip_item.xml +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2018 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<com.google.android.material.chip.Chip - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:checkable="true" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginStart="@dimen/search_chip_half_spacing" - android:layout_marginEnd="@dimen/search_chip_half_spacing" - android:textAppearance="@style/SearchChipText" - android:textColor="@color/search_chip_text_color" - app:checkedIcon="@drawable/ic_check" - app:chipBackgroundColor="@color/search_chip_background_color" - app:chipCornerRadius="@dimen/search_chip_radius" - app:chipStrokeColor="@color/search_chip_stroke_color" - app:chipStrokeWidth="1dp" - app:iconStartPadding="@dimen/search_chip_icon_padding" - app:rippleColor="@color/search_chip_ripple_color" - app:chipMinTouchTargetSize="@dimen/button_touch_size" -/>
\ No newline at end of file diff --git a/res/layout/search_chip_row.xml b/res/layout/search_chip_row.xml deleted file mode 100644 index ad0ac43c8..000000000 --- a/res/layout/search_chip_row.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2018 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<HorizontalScrollView - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:scrollbars="none"> - - <FrameLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" > - - <LinearLayout - android:id="@+id/search_chip_group" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginStart="@dimen/search_chip_group_margin" - android:layout_marginEnd="@dimen/search_chip_group_margin"/> - </FrameLayout> -</HorizontalScrollView>
\ No newline at end of file diff --git a/res/layout/sort_list_item.xml b/res/layout/sort_list_item.xml deleted file mode 100644 index c2f50c8b8..000000000 --- a/res/layout/sort_list_item.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2019 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@android:id/text1" - android:layout_width="match_parent" - android:layout_height="?android:attr/listPreferredItemHeightSmall" - android:textAppearance="@style/SortList" - android:gravity="center_vertical" - android:checkMark="@drawable/list_checker" - android:paddingStart="?android:attr/listPreferredItemPaddingStart" - android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" />
\ No newline at end of file diff --git a/res/layout/table_key_value_row.xml b/res/layout/table_key_value_row.xml deleted file mode 100644 index 6a0b4be13..000000000 --- a/res/layout/table_key_value_row.xml +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<com.android.documentsui.inspector.KeyValueRow - xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingStart="30dp" - android:paddingEnd="30dp"> - - <TextView - android:id="@+id/table_row_key" - android:layout_height="wrap_content" - android:layout_width="0dp" - android:layout_weight="1" - android:paddingTop="13dp" - android:paddingBottom="13dp" - android:paddingEnd="5dp" - android:textAlignment="viewStart" - android:textAppearance="?attr/textAppearanceSubtitle1"> - </TextView> - - <TextView - android:id="@+id/table_row_value" - android:layout_height="wrap_content" - android:layout_width="0dp" - android:layout_weight="1" - android:paddingTop="13dp" - android:paddingBottom="13dp" - android:clickable="false" - android:textIsSelectable="true" - android:textAlignment="viewStart" - android:textAppearance="@style/InspectorKeySubTitle"> - </TextView> - -</com.android.documentsui.inspector.KeyValueRow> |