From 9581ffc8ecb8ca72672f9ac2db3677c80b281c79 Mon Sep 17 00:00:00 2001 From: Morgan Lim Date: Thu, 9 Jul 2020 20:26:01 -0400 Subject: [PATCH] add drop-shadow, rounded border and small margin to album art on now playing screen --- app/build.gradle | 2 ++ app/src/main/res/layout/download.xml | 41 +++++++++++++++++++++------- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 412b88c..c29e6b1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -37,6 +37,8 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "androidx.media:media:1.1.0" implementation 'androidx.legacy:legacy-support-v4:1.0.0' + implementation 'androidx.cardview:cardview:1.0.0' + implementation 'androidx.constraintlayout:constraintlayout:1.1.3' } buildscript { diff --git a/app/src/main/res/layout/download.xml b/app/src/main/res/layout/download.xml index 5c634fc..0f6210e 100644 --- a/app/src/main/res/layout/download.xml +++ b/app/src/main/res/layout/download.xml @@ -1,7 +1,8 @@ + android:layout_height="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto"> - + android:layout_height="match_parent" + android:layout_weight="1" + app:layout_constraintDimensionRatio="1"> - + - + + + +