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

Commit e5aad9d7 authored by Shubham Basu's avatar Shubham Basu Committed by Automerger Merge Worker
Browse files

add cardview for round edges am: a40d9e5e

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/DocumentsUI/+/13955191

Change-Id: Ia2c863effdfb135fc73aa07eb25c69473e6d9d4c
parents d729ed9c a40d9e5e
Loading
Loading
Loading
Loading
+32 −24
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
-->

<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:background="?android:attr/selectableItemBackground"
@@ -40,6 +41,11 @@
            android:paddingEnd="16dp"
            android:paddingStart="@dimen/list_item_padding" >

            <com.google.android.material.card.MaterialCardView
                app:cardElevation="0dp"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:id="@+id/icon_mime"
                    android:layout_width="wrap_content"
@@ -66,6 +72,8 @@
                    android:scaleType="fitCenter"
                    android:src="@drawable/ic_check_circle" />

            </com.google.android.material.card.MaterialCardView>

        </FrameLayout>

        <!-- This is the one special case where we want baseline alignment! -->
+29 −21
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
-->

<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">
@@ -45,6 +46,11 @@
          android:paddingEnd="16dp"
          android:paddingStart="@dimen/list_item_padding">

        <com.google.android.material.card.MaterialCardView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:cardElevation="0dp">

          <ImageView
              android:id="@+id/icon_mime"
              android:layout_width="wrap_content"
@@ -70,6 +76,8 @@
              android:scaleType="fitCenter"
              android:src="@drawable/ic_check_circle" />

        </com.google.android.material.card.MaterialCardView>

      </FrameLayout>

      <LinearLayout