From ec21642a8c637223ca911cde6d63808c87170a47 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Wed, 5 Feb 2020 17:14:37 +0100 Subject: [PATCH] Rounded covers --- .../view/EpisodeItemViewHolder.java | 3 +- app/src/main/res/layout/feeditemlist_item.xml | 46 +++++++++++-------- 2 files changed, 29 insertions(+), 20 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/view/EpisodeItemViewHolder.java b/app/src/main/java/de/danoeh/antennapod/view/EpisodeItemViewHolder.java index 8e722a4c1..038f8b6d3 100644 --- a/app/src/main/java/de/danoeh/antennapod/view/EpisodeItemViewHolder.java +++ b/app/src/main/java/de/danoeh/antennapod/view/EpisodeItemViewHolder.java @@ -12,6 +12,7 @@ import android.widget.ImageView; import android.widget.ProgressBar; import android.widget.RelativeLayout; import android.widget.TextView; +import androidx.cardview.widget.CardView; import androidx.recyclerview.widget.RecyclerView; import com.joanzapata.iconify.Iconify; import de.danoeh.antennapod.R; @@ -56,7 +57,7 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder public final ImageView secondaryActionIcon; private final CircularProgressBar secondaryActionProgress; private final TextView separatorIcons; - public final RelativeLayout coverHolder; + public final CardView coverHolder; private final MainActivity activity; private FeedItem item; diff --git a/app/src/main/res/layout/feeditemlist_item.xml b/app/src/main/res/layout/feeditemlist_item.xml index bf8dca0cc..38ba73c36 100644 --- a/app/src/main/res/layout/feeditemlist_item.xml +++ b/app/src/main/res/layout/feeditemlist_item.xml @@ -22,37 +22,45 @@ android:scaleType="center" android:src="?attr/dragview_background" tools:src="@drawable/ic_drag_vertical_grey600_48dp" - tools:background="@android:color/holo_green_dark" /> + tools:background="@android:color/holo_green_dark"/> - + android:id="@+id/coverHolder" + app:cardCornerRadius="4dp" + app:cardElevation="0dp"> - - + android:layout_height="@dimen/thumbnail_length_queue_item"> - + + + + +