Skip to content

Commit 8009056

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 ecca2c7 commit 8009056

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
@@ -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.card.MaterialCardView
3556
android:id="@+id/album_cover_frame"
3657
android:layout_width="0dp"
@@ -428,24 +449,6 @@
428449
app:iconPadding="0dp"
429450
app:iconSize="24dp"
430451
app:iconTint="?attr/colorOnSurface" />
431-
432-
<com.google.android.material.button.MaterialButton
433-
android:id="@+id/media_control"
434-
android:layout_width="48dp"
435-
android:layout_height="48dp"
436-
android:layout_weight="1"
437-
android:background="@drawable/rp_buttons"
438-
android:insetLeft="0dp"
439-
android:insetTop="0dp"
440-
android:insetRight="0dp"
441-
android:insetBottom="0dp"
442-
app:tooltipText="@string/media_control_text"
443-
android:contentDescription="@string/media_control_text"
444-
app:icon="@drawable/ic_media_control"
445-
app:iconGravity="textStart"
446-
app:iconPadding="0dp"
447-
app:iconSize="24dp"
448-
app:iconTint="?attr/colorOnSurface" />
449452
</LinearLayout>
450453

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

0 commit comments

Comments
 (0)