Skip to content

Commit 93445e9

Browse files
committed
Modify the position of the media control buttons in the full_player.xml layout.
The media control buttons have been removed from the linear layout at the bottom of the screen and moved to the top of the screen. This button is now fixed at the top of the parent layout and has some margin for adjustment.
1 parent 93f0b56 commit 93445e9

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

app/src/main/res/layout/full_player.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,27 @@
3131
app:layout_constraintTop_toTopOf="parent"
3232
app:layout_constraintVertical_bias="0.0" />
3333

34+
<com.google.android.material.button.MaterialButton
35+
android:id="@+id/media_control"
36+
android:layout_width="52dp"
37+
android:layout_height="52dp"
38+
android:layout_marginTop="16dp"
39+
android:layout_marginEnd="24dp"
40+
android:background="@drawable/rp_buttons"
41+
app:tooltipText="@string/media_control_text"
42+
android:contentDescription="@string/media_control_text"
43+
app:icon="@drawable/ic_media_control"
44+
app:iconGravity="textStart"
45+
app:iconPadding="0dp"
46+
app:iconSize="28dp"
47+
app:iconTint="?attr/colorOnSurface"
48+
app:layout_constraintBottom_toTopOf="@id/album_cover_frame"
49+
app:layout_constraintEnd_toEndOf="parent"
50+
app:layout_constraintHorizontal_bias="0.0"
51+
app:layout_constraintTop_toTopOf="parent"
52+
app:layout_constraintVertical_bias="0.0"
53+
/>
54+
3455
<com.google.android.material.button.MaterialButton
3556
android:id="@+id/playback_speed"
3657
android:layout_width="52dp"

0 commit comments

Comments
 (0)