Skip to content

Commit a5c4776

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 4ec3084 commit a5c4776

1 file changed

Lines changed: 21 additions & 18 deletions

File tree

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

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

35+
<com.google.android.material.button.MaterialButton
36+
android:id="@+id/media_control"
37+
android:layout_width="52dp"
38+
android:layout_height="52dp"
39+
android:layout_marginTop="16dp"
40+
android:layout_marginEnd="24dp"
41+
android:background="@drawable/rp_buttons"
42+
app:tooltipText="@string/media_control_text"
43+
android:contentDescription="@string/media_control_text"
44+
app:icon="@drawable/ic_media_control"
45+
app:iconGravity="textStart"
46+
app:iconPadding="0dp"
47+
app:iconSize="28dp"
48+
app:iconTint="?attr/colorOnSurface"
49+
app:layout_constraintBottom_toTopOf="@id/album_cover_frame"
50+
app:layout_constraintEnd_toEndOf="parent"
51+
app:layout_constraintHorizontal_bias="0.0"
52+
app:layout_constraintTop_toTopOf="parent"
53+
app:layout_constraintVertical_bias="0.0"
54+
/>
55+
3556
<com.google.android.material.card.MaterialCardView
3657
android:id="@+id/album_cover_frame"
3758
android:layout_width="0dp"
@@ -429,24 +450,6 @@
429450
app:iconPadding="0dp"
430451
app:iconSize="24dp"
431452
app:iconTint="?attr/colorOnSurface" />
432-
433-
<com.google.android.material.button.MaterialButton
434-
android:id="@+id/media_control"
435-
android:layout_width="48dp"
436-
android:layout_height="48dp"
437-
android:layout_weight="1"
438-
android:background="@drawable/rp_buttons"
439-
android:insetLeft="0dp"
440-
android:insetTop="0dp"
441-
android:insetRight="0dp"
442-
android:insetBottom="0dp"
443-
app:tooltipText="@string/media_control_text"
444-
android:contentDescription="@string/media_control_text"
445-
app:icon="@drawable/ic_media_control"
446-
app:iconGravity="textStart"
447-
app:iconPadding="0dp"
448-
app:iconSize="24dp"
449-
app:iconTint="?attr/colorOnSurface" />
450453
</LinearLayout>
451454

452455
<org.akanework.gramophone.ui.components.LyricsView

0 commit comments

Comments
 (0)