Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 851318bb authored by Luciano Pacheco's avatar Luciano Pacheco
Browse files

DocsUI: Material3 for the overall fixed layout

Bug: 377771863
Test: Manually, loaded in the DUT and checked
Flag: com.android.documentsui.flags.use_material3
Change-Id: I5f8eadf52216a283db6a261fcf2a963f6078be7d
parent 903c51d0
Loading
Loading
Loading
Loading
+20 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2024 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.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <solid android:color="?attr/colorSurfaceBright" />
    <corners android:radius="16dp" />
</shape>
 No newline at end of file
+1 −2
Original line number Original line Diff line number Diff line
@@ -23,8 +23,7 @@
    <com.android.documentsui.HorizontalBreadcrumb
    <com.android.documentsui.HorizontalBreadcrumb
        android:id="@+id/horizontal_breadcrumb"
        android:id="@+id/horizontal_breadcrumb"
        android:layout_width="match_parent"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_height="wrap_content" />
        android:background="?android:attr/colorBackground"/>


    <!-- used for search chip. -->
    <!-- used for search chip. -->
    <include layout="@layout/search_chip_row"/>
    <include layout="@layout/search_chip_row"/>
+33 −29
Original line number Original line Diff line number Diff line
@@ -27,17 +27,39 @@
    <LinearLayout
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_height="match_parent"
        android:background="?attr/colorSurfaceContainer"
        android:orientation="vertical">
        android:orientation="vertical">


        <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"
                android:layout_marginTop="@dimen/space_medium_1"
                />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical"
                android:background="@drawable/main_container_background"
                android:layout_margin="@dimen/space_small_1"
                android:layout_marginStart="0dp">

                <androidx.appcompat.widget.Toolbar
                <androidx.appcompat.widget.Toolbar
                    android:id="@+id/toolbar"
                    android:id="@+id/toolbar"
                    android:layout_width="match_parent"
                    android:layout_width="match_parent"
                    android:layout_height="?android:attr/actionBarSize"
                    android:layout_height="?android:attr/actionBarSize"
                    android:layout_margin="@dimen/search_bar_margin"
                    android:layout_margin="@dimen/search_bar_margin"
            android:background="?android:attr/colorBackground"
                    android:elevation="3dp"
                    android:elevation="3dp"
            android:theme="?actionBarTheme"
                    android:popupTheme="?actionBarPopupTheme"
                    android:popupTheme="?actionBarPopupTheme"
                    android:theme="?actionBarTheme"
                    app:collapseContentDescription="@string/button_back"
                    app:collapseContentDescription="@string/button_back"
                    app:titleTextAppearance="@style/ToolbarTitle">
                    app:titleTextAppearance="@style/ToolbarTitle">


@@ -45,35 +67,17 @@
                        android:id="@+id/searchbar_title"
                        android:id="@+id/searchbar_title"
                        android:layout_width="match_parent"
                        android:layout_width="match_parent"
                        android:layout_height="?android:attr/actionBarSize"
                        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:layout_marginEnd="@dimen/search_bar_text_margin_end"
                android:paddingStart="@dimen/search_bar_icon_padding"
                        android:layout_marginStart="@dimen/search_bar_text_margin_start"
                        android:drawablePadding="@dimen/search_bar_icon_padding"
                        android:drawableStart="@drawable/ic_menu_search"
                        android:gravity="center_vertical"
                        android:gravity="center_vertical"
                        android:paddingStart="@dimen/search_bar_icon_padding"
                        android:text="@string/search_bar_hint"
                        android:text="@string/search_bar_hint"
                android:textAppearance="@style/SearchBarTitle"
                        android:textAppearance="@style/SearchBarTitle" />
                android:drawableStart="@drawable/ic_menu_search"
                android:drawablePadding="@dimen/search_bar_icon_padding"/>


                </androidx.appcompat.widget.Toolbar>
                </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" />
                <include layout="@layout/directory_header" />


                <FrameLayout
                <FrameLayout
+0 −3
Original line number Original line Diff line number Diff line
@@ -19,9 +19,6 @@
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_height="match_parent"
    android:background="?android:attr/colorBackground"
    android:outlineProvider="bounds"
    android:elevation="4dp"
    android:orientation="vertical">
    android:orientation="vertical">


    <ProgressBar
    <ProgressBar
+2 −2
Original line number Original line Diff line number Diff line
@@ -21,7 +21,7 @@
    <dimen name="tab_selector_indicator_height">2dp</dimen>
    <dimen name="tab_selector_indicator_height">2dp</dimen>
    <dimen name="profile_tab_padding">0dp</dimen>
    <dimen name="profile_tab_padding">0dp</dimen>
    <dimen name="grid_container_padding">20dp</dimen>
    <dimen name="grid_container_padding">20dp</dimen>
    <dimen name="list_container_padding">0dp</dimen>
    <dimen name="list_container_padding">20dp</dimen>
    <dimen name="icon_size">40dp</dimen>
    <dimen name="icon_size">40dp</dimen>
    <dimen name="button_touch_size">48dp</dimen>
    <dimen name="button_touch_size">48dp</dimen>
    <dimen name="root_icon_size">24dp</dimen>
    <dimen name="root_icon_size">24dp</dimen>
@@ -118,7 +118,7 @@
    <dimen name="search_bar_radius">8dp</dimen>
    <dimen name="search_bar_radius">8dp</dimen>
    <dimen name="search_bar_background_margin_start">0dp</dimen>
    <dimen name="search_bar_background_margin_start">0dp</dimen>
    <dimen name="search_bar_background_margin_end">0dp</dimen>
    <dimen name="search_bar_background_margin_end">0dp</dimen>
    <dimen name="search_bar_margin">8dp</dimen>
    <dimen name="search_bar_margin">@dimen/space_extra_small_6</dimen>
    <dimen name="search_bar_text_size">16dp</dimen>
    <dimen name="search_bar_text_size">16dp</dimen>


    <dimen name="action_bar_elevation">3dp</dimen>
    <dimen name="action_bar_elevation">3dp</dimen>