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

Commit a40d9e5e authored by Shubham Basu's avatar Shubham Basu
Browse files

add cardview for round edges

Fix:168244676
Test: Manual

Change-Id: Id859015622d70a4e58d03fc75edab34b4c450a65
parent 34add822
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