Skip to content

Commit abc6b0c

Browse files
committed
feat(UI): Refactor full player layout and build configurations
- In `build.gradle.kts`, set the debug signing configuration for the release build type. - In `full_player.xml`, reorder the media control and playback speed buttons. - In `layout-w600dp-land/full_player.xml`, clean up redundant layout attributes for the album cover card view. Signed-off-by: ghhccghk <2137610394@qq.com>
1 parent 7f2766a commit abc6b0c

3 files changed

Lines changed: 21 additions & 36 deletions

File tree

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ android {
178178
isJniDebuggable = true
179179
isPseudoLocalesEnabled = true
180180
matchingFallbacks += "release"
181+
signingConfig = signingConfigs.getByName("debug")
181182
}
182183
debug {
183184
isPseudoLocalesEnabled = true

app/src/main/res/layout-w600dp-land/full_player.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,6 @@
6464
app:layout_constraintTop_toBottomOf="@id/playback_speed"
6565
app:layout_constraintVertical_bias="0.0" />
6666

67-
68-
<com.google.android.material.card.MaterialCardView
69-
android:id="@+id/album_cover_frame"
70-
android:layout_width="0dp"
71-
android:layout_height="0dp"
72-
android:layout_marginHorizontal="24dp"
73-
android:layout_marginTop="16dp"
74-
app:cardBackgroundColor="@android:color/transparent"
75-
app:cardCornerRadius="22dp"
76-
app:strokeWidth="0dp"
77-
android:layout_marginBottom="25dp"
78-
app:layout_constraintBottom_toBottomOf="parent"
79-
app:layout_constraintDimensionRatio="1:1"
80-
app:layout_constraintEnd_toStartOf="@id/controls"
81-
app:layout_constraintStart_toStartOf="parent"
82-
app:layout_constraintTop_toTopOf="parent">
8367
<com.google.android.material.card.MaterialCardView
8468
android:id="@+id/album_cover_frame"
8569
android:layout_width="0dp"

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@
2929
app:layout_constraintVertical_bias="0.0"
3030
app:tooltipText="@string/expand_less" />
3131

32+
<com.google.android.material.button.MaterialButton
33+
android:id="@+id/media_control"
34+
android:layout_width="52dp"
35+
android:layout_height="52dp"
36+
android:layout_marginEnd="58dp"
37+
android:background="@drawable/rp_buttons"
38+
app:tooltipText="@string/media_control_text"
39+
android:contentDescription="@string/media_control_text"
40+
app:icon="@drawable/ic_media_control"
41+
app:iconGravity="textStart"
42+
app:iconPadding="0dp"
43+
app:iconSize="24dp"
44+
app:iconTint="?attr/colorOnSurface"
45+
app:layout_constraintBottom_toTopOf="@id/album_cover_frame"
46+
app:layout_constraintEnd_toEndOf="parent"
47+
app:layout_constraintHorizontal_bias="1.0"
48+
app:layout_constraintStart_toStartOf="parent"
49+
app:layout_constraintTop_toTopOf="parent"
50+
app:layout_constraintVertical_bias="0.0" />
51+
3252
<com.google.android.material.button.MaterialButton
3353
android:id="@+id/playback_speed"
3454
android:layout_width="52dp"
@@ -49,26 +69,6 @@
4969
app:layout_constraintTop_toTopOf="parent"
5070
app:layout_constraintVertical_bias="0.0" />
5171

52-
<com.google.android.material.button.MaterialButton
53-
android:id="@+id/media_control"
54-
android:layout_width="52dp"
55-
android:layout_height="52dp"
56-
android:layout_marginEnd="24dp"
57-
android:background="@drawable/rp_buttons"
58-
app:tooltipText="@string/media_control_text"
59-
android:contentDescription="@string/media_control_text"
60-
app:icon="@drawable/ic_media_control"
61-
app:iconGravity="textStart"
62-
app:iconPadding="0dp"
63-
app:iconSize="24dp"
64-
app:iconTint="?attr/colorOnSurface"
65-
app:layout_constraintBottom_toTopOf="@id/album_cover_frame"
66-
app:layout_constraintEnd_toEndOf="parent"
67-
app:layout_constraintHorizontal_bias="1.0"
68-
app:layout_constraintStart_toStartOf="parent"
69-
app:layout_constraintTop_toTopOf="parent"
70-
app:layout_constraintVertical_bias="0.0" />
71-
7272
<com.google.android.material.card.MaterialCardView
7373
android:id="@+id/album_cover_frame"
7474
android:layout_width="0dp"

0 commit comments

Comments
 (0)