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

Commit 73c5ae9b authored by Wenbo Jie's avatar Wenbo Jie
Browse files

[DocsUI M3] Replace TextView to MaterialTextView

TextView will be inflated to MaterialTextView inside the Material theme,
so this change won't change any UI or functionality of he app, but as
our convention we always want to use the fully qualified component name,
we've done similar things on Button -> MaterialButton.

Bug: 406140464
Test: m DocumentsUIGoogle && manual inspection
Flag: com.android.documentsui.flags.use_material3
Change-Id: I7ff61dab8b32759c95115132a0c1f0fc6cda719d
parent befca12b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@
                    android:tint="@color/doc_list_item_badge_icon_color"
                    android:contentDescription="@string/a11y_work"/>

                <TextView
                <com.google.android.material.textview.MaterialTextView
                    android:id="@android:id/title"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
@@ -117,7 +117,7 @@
                    android:textAppearance="@style/FileItemLabelText"/>
            </LinearLayout>

            <TextView
            <com.google.android.material.textview.MaterialTextView
                android:id="@+id/file_type"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
@@ -125,7 +125,7 @@
                android:textAlignment="viewStart"
                style="@style/FileItemLabelStyle"/>

            <TextView
            <com.google.android.material.textview.MaterialTextView
                android:id="@+id/size"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
@@ -133,7 +133,7 @@
                android:textAlignment="viewStart"
                style="@style/FileItemLabelStyle"/>

            <TextView
            <com.google.android.material.textview.MaterialTextView
                android:id="@+id/date"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
+2 −2
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@
        android:layout_marginStart="@dimen/apps_row_app_icon_margin_horizontal"
        android:layout_marginEnd="@dimen/apps_row_app_icon_margin_horizontal"/>

    <TextView
    <com.google.android.material.textview.MaterialTextView
        android:id="@android:id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
@@ -45,7 +45,7 @@
        android:ellipsize="end"
        android:gravity="center"/>

    <TextView
    <com.google.android.material.textview.MaterialTextView
        android:id="@+id/summary"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <TextView
    <com.google.android.material.textview.MaterialTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:minHeight="@dimen/apps_row_title_height"
+2 −3
Original line number Diff line number Diff line
@@ -14,12 +14,11 @@
     limitations under the License.
-->

<TextView
<com.google.android.material.textview.MaterialTextView
    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>
    android:textAppearance="@style/Subhead" />
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@
            android:layout_height="?attr/actionBarSize"
            android:touchscreenBlocksFocus="false">

            <TextView
            <com.google.android.material.textview.MaterialTextView
                android:id="@+id/searchbar_title"
                android:layout_width="match_parent"
                android:layout_height="?android:attr/actionBarSize"
Loading