From 6f7054c141c638cd1336aa6591e37ba3dc198136 Mon Sep 17 00:00:00 2001 From: h4h13 Date: Mon, 24 Feb 2020 01:13:20 +0530 Subject: [PATCH] Improved adaptive theme controls --- ...ment_adaptive_player_playback_controls.xml | 261 +++++++++--------- 1 file changed, 127 insertions(+), 134 deletions(-) diff --git a/app/src/main/res/layout/fragment_adaptive_player_playback_controls.xml b/app/src/main/res/layout/fragment_adaptive_player_playback_controls.xml index e06d4451..c4d6cffa 100644 --- a/app/src/main/res/layout/fragment_adaptive_player_playback_controls.xml +++ b/app/src/main/res/layout/fragment_adaptive_player_playback_controls.xml @@ -1,152 +1,137 @@ - - + android:layout_marginStart="16dp" + android:gravity="center" + android:minWidth="40dp" + android:singleLine="true" + android:textColor="?android:attr/textColorSecondary" + android:textSize="12sp" + app:layout_constraintBottom_toBottomOf="@+id/progressSlider" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="@id/progressSlider" + tools:ignore="RtlHardcoded,RtlSymmetry" + tools:text="00:22" /> - - - - - - - - - + android:layout_marginTop="8dp" + android:layout_weight="8" + android:maxHeight="1.5dp" + android:progressDrawable="@drawable/color_progress_seek" + android:splitTrack="false" + app:layout_constraintEnd_toStartOf="@id/songTotalTime" + app:layout_constraintStart_toEndOf="@id/songCurrentProgress" + app:layout_constraintTop_toTopOf="parent" + tools:ignore="RtlHardcoded,UnusedAttribute" + tools:progress="20" /> - + - + - + - + - + - + - + android:paddingEnd="8dp" + app:layout_constraintBottom_toTopOf="@id/songInfo" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/playPauseButton" + tools:backgroundTint="@color/md_red_400" + tools:layout_height="52dp" /> - +