Skip to content
Snippets Groups Projects
Commit 50caf377 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix audio player spacings and shadows

parent cc6194ea
No related branches found
No related tags found
1 merge request!1193Tablet UI
Pipeline #176045 failed with stage
in 19 minutes and 43 seconds
......@@ -457,7 +457,7 @@
android:id="@+id/track_info_container"
android:visibility="gone"
tools:visibility="visible"
android:layout_marginTop="8dp"
android:layout_marginTop="32dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toTopOf="@+id/time"
app:layout_constraintEnd_toEndOf="parent"
......@@ -469,7 +469,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="24dp"
android:fontFamily="sans-serif-light"
android:maxLines="1"
......@@ -506,7 +505,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="24dp"
android:layout_marginBottom="16dp"
android:maxLines="1"
......
......@@ -28,17 +28,21 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:background="#00000000"
android:orientation="horizontal">
<androidx.cardview.widget.CardView
<com.google.android.material.card.MaterialCardView
android:id="@+id/cover_card"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="16dp"
app:cardBackgroundColor="@android:color/transparent"
app:cardCornerRadius="0dp"
app:cardElevation="16dp"
app:cardElevation="12dp"
android:layout_marginBottom="24dp"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
app:layout_constrainedHeight="true"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toTopOf="@+id/song_title"
......@@ -54,9 +58,8 @@
android:layout_height="match_parent"
android:background="#00000000"
android:scaleType="centerCrop"
app:elevation="8dp"
tools:srcCompat="@tools:sample/avatars" />
</androidx.cardview.widget.CardView>
</com.google.android.material.card.MaterialCardView>
<TextView
......
......@@ -146,6 +146,7 @@ internal class AudioPlayerAnimator : IAudioPlayerAnimator, LifecycleObserver {
if (audioPlayer.isTablet()) {
hidePlaylistLandscapeConstraint.constrainHeight(R.id.track_info_container, ConstraintSet.WRAP_CONTENT)
hidePlaylistLandscapeConstraint.setDimensionRatio(R.id.cover_media_switcher, null)
hidePlaylistLandscapeConstraint.setMargin(R.id.track_info_container, ConstraintSet.TOP, 0)
hidePlaylistLandscapeConstraint.connect(R.id.cover_media_switcher, ConstraintSet.TOP, R.id.header, ConstraintSet.BOTTOM)
hidePlaylistLandscapeConstraint.connect(R.id.cover_media_switcher, ConstraintSet.END, ConstraintSet.PARENT_ID, ConstraintSet.END)
hidePlaylistLandscapeConstraint.connect(R.id.track_info_container, ConstraintSet.START, ConstraintSet.PARENT_ID, ConstraintSet.START)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment