Remove card elevation on home screen (#6132)

This commit is contained in:
Lukmannudin 2022-10-15 00:24:02 +07:00 committed by GitHub
parent 504002c48f
commit 5dc3699361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 13 deletions

View File

@ -13,9 +13,10 @@
android:id="@+id/card"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
app:cardCornerRadius="12dp">
android:foreground="?android:attr/selectableItemBackground"
app:cardCornerRadius="12dp"
app:cardElevation="0dp">
<LinearLayout
android:layout_width="match_parent"
@ -26,6 +27,7 @@
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="1px"
app:cardCornerRadius="12dp"
app:cardElevation="0dp">
@ -45,8 +47,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:outlineProvider="bounds"
tools:src="@tools:sample/avatars"
squareImageView:direction="width" />
squareImageView:direction="width"
tools:src="@tools:sample/avatars" />
<ImageView
android:layout_width="48dp"
@ -60,8 +62,8 @@
android:id="@+id/circularProgressBar"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="4dp"
android:layout_gravity="bottom|end"
android:layout_margin="4dp"
app:foregroundColor="?attr/colorOnPrimary" />
<ImageView
@ -70,12 +72,12 @@
android:layout_height="48dp"
android:layout_gravity="bottom|end"
android:layout_margin="4dp"
android:padding="12dp"
android:clickable="true"
android:foreground="?attr/selectableItemBackgroundBorderless"
app:tintMode="src_atop"
android:padding="12dp"
app:srcCompat="@drawable/ic_play_24dp"
app:tint="?attr/colorOnPrimary"
app:srcCompat="@drawable/ic_play_24dp" />
app:tintMode="src_atop" />
</FrameLayout>
@ -83,8 +85,8 @@
android:id="@+id/progressBar"
android:layout_width="match_parent"
android:layout_height="4dp"
android:max="100"
android:layout_gravity="bottom"
android:max="100"
style="?attr/progressBarTheme"
tools:background="@android:color/holo_blue_light" />
@ -96,14 +98,13 @@
android:id="@+id/titleLabel"
android:layout_width="128dp"
android:layout_height="wrap_content"
android:ellipsize="end"
android:paddingHorizontal="4dp"
android:layout_marginTop="4dp"
android:ellipsize="end"
android:lines="2"
android:paddingHorizontal="4dp"
android:singleLine="false"
android:textColor="?android:attr/textColorPrimary"
android:textSize="14sp"
tools:text="@sample/episodes.json/data/title" />
android:textSize="14sp" />
<TextView
android:id="@+id/dateLabel"