|
8 | 8 |
|
9 | 9 | <LinearLayout |
10 | 10 | android:id="@+id/track_info_area" |
11 | | - android:layout_width="wrap_content" |
| 11 | + android:layout_width="0dp" |
12 | 12 | android:layout_height="wrap_content" |
13 | | - android:layout_marginLeft="8dp" |
14 | | - android:layout_marginTop="8dp" |
15 | | - android:layout_marginRight="8dp" |
16 | | - android:layout_marginBottom="8dp" |
| 13 | + android:layout_marginStart="16dp" |
| 14 | + android:layout_marginTop="16dp" |
| 15 | + android:layout_marginEnd="16dp" |
| 16 | + android:layout_marginBottom="16dp" |
17 | 17 | android:orientation="vertical" |
18 | 18 | app:layout_constraintBottom_toTopOf="@+id/main_track_progress_seeker" |
19 | | - app:layout_constraintHorizontal_bias="0.502" |
20 | | - app:layout_constraintLeft_toLeftOf="parent" |
21 | | - app:layout_constraintRight_toLeftOf="@+id/main_album_cover_image_view" |
22 | | - app:layout_constraintTop_toTopOf="parent" |
23 | | - app:layout_constraintVertical_bias="0.514"> |
| 19 | + app:layout_constraintEnd_toStartOf="@+id/main_album_cover_image_view" |
| 20 | + app:layout_constraintStart_toStartOf="parent" |
| 21 | + app:layout_constraintTop_toTopOf="parent"> |
24 | 22 |
|
25 | 23 | <TextView |
26 | 24 | android:id="@+id/main_title_label" |
|
78 | 76 | android:id="@+id/main_track_progress_seeker" |
79 | 77 | android:layout_width="0dp" |
80 | 78 | android:layout_height="wrap_content" |
81 | | - android:layout_marginStart="50dp" |
82 | | - android:layout_marginLeft="50dp" |
83 | | - android:layout_marginEnd="50dp" |
84 | | - android:layout_marginRight="50dp" |
85 | | - android:gravity="center" |
| 79 | + android:layout_marginStart="8dp" |
| 80 | + android:layout_marginEnd="8dp" |
86 | 81 | android:progress="0" |
87 | 82 | android:progressTint="@color/progress_tint" |
88 | 83 | android:secondaryProgress="0" |
89 | 84 | android:thumbTint="@color/progress_tint" |
90 | 85 | app:layout_constraintBottom_toBottomOf="parent" |
91 | | - app:layout_constraintLeft_toLeftOf="@+id/main_track_progress_current" |
92 | | - app:layout_constraintRight_toRightOf="@+id/main_track_duration_total" |
| 86 | + app:layout_constraintEnd_toStartOf="@+id/main_track_duration_total" |
| 87 | + app:layout_constraintStart_toEndOf="@+id/main_track_progress_current" |
93 | 88 | app:layout_constraintTop_toTopOf="parent" |
94 | | - tools:ignore="UnusedAttribute" |
95 | | - tools:layout_constraintBottom_creator="1" |
96 | | - tools:layout_constraintLeft_creator="1" |
97 | | - tools:layout_constraintRight_creator="1" |
98 | | - tools:layout_constraintTop_creator="1" /> |
| 89 | + tools:ignore="UnusedAttribute" /> |
99 | 90 |
|
100 | 91 | <SeekBar |
101 | 92 | android:id="@+id/main_volume_seeker" |
102 | 93 | android:layout_width="0dp" |
103 | 94 | android:layout_height="wrap_content" |
104 | 95 | android:layout_marginStart="8dp" |
| 96 | + android:layout_marginEnd="16dp" |
105 | 97 | android:layout_marginBottom="16dp" |
106 | | - android:gravity="center" |
107 | 98 | android:max="100" |
108 | 99 | android:progress="0" |
109 | 100 | android:progressTint="@color/primary" |
110 | 101 | android:secondaryProgress="0" |
111 | 102 | android:thumbTint="@color/primary_dark" |
112 | 103 | app:layout_constraintBottom_toBottomOf="parent" |
113 | | - app:layout_constraintHorizontal_bias="1.0" |
114 | | - app:layout_constraintLeft_toRightOf="@+id/main_mute_button" |
115 | | - app:layout_constraintRight_toRightOf="@+id/main_track_duration_total" |
116 | | - tools:ignore="UnusedAttribute" |
117 | | - tools:layout_constraintLeft_creator="1" /> |
| 104 | + app:layout_constraintEnd_toStartOf="@+id/main_album_cover_image_view" |
| 105 | + app:layout_constraintStart_toEndOf="@+id/main_mute_button" |
| 106 | + app:layout_constraintTop_toTopOf="@+id/main_mute_button" |
| 107 | + tools:ignore="UnusedAttribute" /> |
118 | 108 |
|
119 | 109 |
|
120 | 110 | <TextView |
|
123 | 113 | android:layout_height="wrap_content" |
124 | 114 | android:layout_marginStart="16dp" |
125 | 115 | android:fontFamily="sans-serif-medium" |
126 | | - android:paddingLeft="@dimen/small_margin" |
| 116 | + android:paddingStart="@dimen/small_margin" |
127 | 117 | android:paddingEnd="@dimen/small_margin" |
128 | | - android:paddingRight="@dimen/small_margin" |
129 | 118 | android:shadowColor="@android:color/black" |
130 | 119 | android:shadowDx="1" |
131 | 120 | android:shadowDy="1" |
|
134 | 123 | android:textColor="?android:attr/textColorPrimary" |
135 | 124 | android:textSize="12sp" |
136 | 125 | app:layout_constraintBottom_toBottomOf="@+id/main_track_progress_seeker" |
137 | | - app:layout_constraintHorizontal_chainStyle="spread_inside" |
138 | | - app:layout_constraintLeft_toLeftOf="parent" |
| 126 | + app:layout_constraintStart_toStartOf="parent" |
139 | 127 | app:layout_constraintTop_toTopOf="@+id/main_track_progress_seeker" |
140 | | - app:layout_constraintVertical_bias="0.0" |
141 | | - tools:ignore="MissingPrefix" |
142 | | - tools:layout_constraintBottom_creator="1" |
143 | | - tools:layout_constraintTop_creator="1" /> |
| 128 | + tools:ignore="MissingPrefix,RtlSymmetry" /> |
144 | 129 |
|
145 | 130 | <TextView |
146 | 131 | android:id="@+id/main_track_duration_total" |
147 | 132 | android:layout_width="wrap_content" |
148 | 133 | android:layout_height="wrap_content" |
149 | | - android:layout_marginEnd="8dp" |
| 134 | + android:layout_marginEnd="16dp" |
150 | 135 | android:fontFamily="sans-serif-medium" |
151 | | - android:paddingLeft="@dimen/small_margin" |
| 136 | + android:paddingStart="@dimen/small_margin" |
152 | 137 | android:paddingEnd="@dimen/small_margin" |
153 | | - android:paddingRight="@dimen/small_margin" |
154 | 138 | android:shadowColor="@android:color/black" |
155 | 139 | android:shadowDx="1" |
156 | 140 | android:shadowDy="1" |
|
159 | 143 | android:textColor="?android:attr/textColorPrimary" |
160 | 144 | android:textSize="12sp" |
161 | 145 | app:layout_constraintBottom_toBottomOf="@+id/main_track_progress_seeker" |
162 | | - app:layout_constraintRight_toLeftOf="@+id/main_album_cover_image_view" |
| 146 | + app:layout_constraintEnd_toStartOf="@+id/main_album_cover_image_view" |
163 | 147 | app:layout_constraintTop_toTopOf="@+id/main_track_progress_seeker" |
164 | | - app:layout_constraintVertical_bias="0.0" |
165 | | - tools:ignore="MissingPrefix,RelativeOverlap" |
166 | | - tools:layout_constraintBottom_creator="1" |
167 | | - tools:layout_constraintTop_creator="1" /> |
| 148 | + tools:ignore="MissingPrefix,RelativeOverlap,RtlSymmetry" /> |
168 | 149 |
|
169 | 150 |
|
170 | | - <com.kelsos.mbrc.common.ui.SquareImageButton |
| 151 | + <ImageButton |
171 | 152 | android:id="@+id/main_mute_button" |
172 | 153 | android:layout_width="48dp" |
173 | 154 | android:layout_height="48dp" |
174 | | - android:layout_centerVertical="true" |
175 | | - android:layout_marginBottom="8dp" |
| 155 | + android:layout_marginStart="16dp" |
| 156 | + android:layout_marginBottom="16dp" |
176 | 157 | android:background="?attr/selectableItemBackgroundBorderless" |
177 | 158 | android:contentDescription="@string/main_button_mute_description" |
178 | | - android:scaleType="centerInside" |
| 159 | + android:padding="@dimen/small_margin" |
179 | 160 | android:src="@drawable/ic_volume_off_black_24dp" |
180 | 161 | app:layout_constraintBottom_toBottomOf="parent" |
181 | | - app:layout_constraintLeft_toLeftOf="@+id/main_repeat_button" |
182 | | - app:layout_constraintTop_toTopOf="@+id/main_volume_seeker" |
183 | | - app:layout_constraintVertical_bias="0.0" |
| 162 | + app:layout_constraintStart_toStartOf="parent" |
184 | 163 | app:tint="?attr/colorControlNormal" /> |
185 | 164 |
|
186 | | - <com.kelsos.mbrc.common.ui.SquareImageButton |
| 165 | + <ImageButton |
187 | 166 | android:id="@+id/main_repeat_button" |
188 | 167 | android:layout_width="0dp" |
189 | | - android:layout_height="0dp" |
190 | | - android:layout_gravity="center_vertical" |
| 168 | + android:layout_height="48dp" |
| 169 | + android:layout_marginStart="16dp" |
191 | 170 | android:background="?attr/selectableItemBackgroundBorderless" |
192 | 171 | android:contentDescription="@string/main_button_repeat_description" |
193 | | - android:scaleType="centerInside" |
| 172 | + android:padding="@dimen/small_margin" |
194 | 173 | android:src="@drawable/ic_repeat_black_24dp" |
195 | 174 | app:layout_constraintBottom_toBottomOf="@+id/main_button_play_pause" |
196 | | - app:layout_constraintHorizontal_bias="0.0" |
| 175 | + app:layout_constraintEnd_toStartOf="@+id/main_button_previous" |
197 | 176 | app:layout_constraintHorizontal_weight="1" |
198 | | - app:layout_constraintLeft_toLeftOf="@+id/main_track_progress_current" |
199 | | - app:layout_constraintRight_toLeftOf="@+id/main_button_previous" |
| 177 | + app:layout_constraintStart_toStartOf="parent" |
200 | 178 | app:layout_constraintTop_toTopOf="@+id/main_button_play_pause" |
201 | | - app:layout_constraintVertical_bias="0.0" |
202 | 179 | app:tint="?attr/colorControlNormal" /> |
203 | 180 |
|
204 | 181 |
|
205 | | - <com.kelsos.mbrc.common.ui.SquareImageButton |
| 182 | + <ImageButton |
206 | 183 | android:id="@+id/main_button_previous" |
207 | 184 | android:layout_width="0dp" |
208 | | - android:layout_height="0dp" |
209 | | - android:layout_marginStart="8dp" |
210 | | - android:layout_marginLeft="8dp" |
211 | | - android:layout_marginEnd="8dp" |
212 | | - android:layout_marginRight="8dp" |
| 185 | + android:layout_height="48dp" |
213 | 186 | android:background="?attr/selectableItemBackgroundBorderless" |
214 | 187 | android:contentDescription="@string/main_button_previous_description" |
215 | | - android:scaleType="centerInside" |
| 188 | + android:padding="@dimen/small_margin" |
216 | 189 | android:src="@drawable/ic_skip_previous_black_24dp" |
217 | 190 | app:layout_constraintBottom_toBottomOf="@+id/main_button_play_pause" |
| 191 | + app:layout_constraintEnd_toStartOf="@+id/main_button_play_pause" |
218 | 192 | app:layout_constraintHorizontal_weight="1" |
219 | | - app:layout_constraintLeft_toRightOf="@+id/main_repeat_button" |
220 | | - app:layout_constraintRight_toLeftOf="@+id/main_button_play_pause" |
| 193 | + app:layout_constraintStart_toEndOf="@+id/main_repeat_button" |
221 | 194 | app:layout_constraintTop_toTopOf="@+id/main_button_play_pause" |
222 | 195 | app:tint="?attr/colorControlNormal" /> |
223 | 196 |
|
224 | | - <com.kelsos.mbrc.common.ui.SquareImageButton |
| 197 | + <ImageButton |
225 | 198 | android:id="@+id/main_button_play_pause" |
226 | 199 | android:layout_width="0dp" |
227 | | - android:layout_height="wrap_content" |
228 | | - android:layout_marginTop="8dp" |
229 | | - android:layout_marginEnd="8dp" |
230 | | - android:layout_marginBottom="8dp" |
| 200 | + android:layout_height="48dp" |
231 | 201 | android:background="?attr/selectableItemBackgroundBorderless" |
232 | 202 | android:contentDescription="@string/main_button_play_pause_description" |
233 | | - android:scaleType="fitCenter" |
| 203 | + android:padding="@dimen/small_margin" |
234 | 204 | android:src="@drawable/ic_play_circle_filled_black_24dp" |
235 | 205 | app:layout_constraintBottom_toTopOf="@+id/main_volume_seeker" |
| 206 | + app:layout_constraintEnd_toStartOf="@+id/main_button_next" |
236 | 207 | app:layout_constraintHorizontal_weight="1" |
237 | | - app:layout_constraintLeft_toRightOf="@+id/main_button_previous" |
238 | | - app:layout_constraintRight_toLeftOf="@+id/main_button_next" |
| 208 | + app:layout_constraintStart_toEndOf="@+id/main_button_previous" |
239 | 209 | app:layout_constraintTop_toBottomOf="@+id/main_track_progress_seeker" |
240 | 210 | app:tint="@color/accent" /> |
241 | 211 |
|
242 | | - <com.kelsos.mbrc.common.ui.SquareImageButton |
| 212 | + <ImageButton |
243 | 213 | android:id="@+id/main_button_next" |
244 | 214 | android:layout_width="0dp" |
245 | | - android:layout_height="0dp" |
246 | | - android:layout_marginEnd="8dp" |
| 215 | + android:layout_height="48dp" |
247 | 216 | android:background="?attr/selectableItemBackgroundBorderless" |
248 | 217 | android:contentDescription="@string/main_button_next_description" |
249 | | - android:scaleType="centerInside" |
| 218 | + android:padding="@dimen/small_margin" |
250 | 219 | android:src="@drawable/ic_skip_next_black_24dp" |
251 | 220 | app:layout_constraintBottom_toBottomOf="@+id/main_button_play_pause" |
| 221 | + app:layout_constraintEnd_toStartOf="@+id/main_shuffle_button" |
252 | 222 | app:layout_constraintHorizontal_weight="1" |
253 | | - app:layout_constraintLeft_toRightOf="@+id/main_button_play_pause" |
254 | | - app:layout_constraintRight_toLeftOf="@+id/main_shuffle_button" |
| 223 | + app:layout_constraintStart_toEndOf="@+id/main_button_play_pause" |
255 | 224 | app:layout_constraintTop_toTopOf="@+id/main_button_play_pause" |
256 | 225 | app:tint="?attr/colorControlNormal" /> |
257 | 226 |
|
258 | | - <com.kelsos.mbrc.common.ui.SquareImageButton |
| 227 | + <ImageButton |
259 | 228 | android:id="@+id/main_shuffle_button" |
260 | 229 | android:layout_width="0dp" |
261 | | - android:layout_height="0dp" |
262 | | - android:layout_gravity="center_vertical" |
| 230 | + android:layout_height="48dp" |
| 231 | + android:layout_marginEnd="16dp" |
263 | 232 | android:background="?attr/selectableItemBackgroundBorderless" |
264 | 233 | android:contentDescription="@string/main_button_shuffle_description" |
265 | | - android:scaleType="centerInside" |
| 234 | + android:padding="@dimen/small_margin" |
266 | 235 | android:src="@drawable/ic_shuffle_black_24dp" |
267 | 236 | app:layout_constraintBottom_toBottomOf="@+id/main_button_play_pause" |
268 | | - app:layout_constraintHorizontal_bias="1.0" |
| 237 | + app:layout_constraintEnd_toStartOf="@+id/main_album_cover_image_view" |
269 | 238 | app:layout_constraintHorizontal_weight="1" |
270 | | - app:layout_constraintLeft_toRightOf="@+id/main_button_next" |
271 | | - app:layout_constraintRight_toRightOf="@+id/main_track_duration_total" |
| 239 | + app:layout_constraintStart_toEndOf="@+id/main_button_next" |
272 | 240 | app:layout_constraintTop_toTopOf="@+id/main_button_play_pause" |
273 | | - app:layout_constraintVertical_bias="1.0" |
274 | 241 | app:tint="?attr/colorControlNormal" /> |
275 | 242 |
|
276 | 243 |
|
|
279 | 246 | android:layout_width="0dp" |
280 | 247 | android:layout_height="0dp" |
281 | 248 | android:layout_marginTop="16dp" |
282 | | - android:layout_marginEnd="8dp" |
| 249 | + android:layout_marginEnd="16dp" |
283 | 250 | android:layout_marginBottom="16dp" |
284 | 251 | android:adjustViewBounds="true" |
285 | 252 | android:contentDescription="@string/description_album_cover" |
286 | | - android:longClickable="true" |
287 | 253 | android:scaleType="centerCrop" |
288 | 254 | android:src="@drawable/ic_image_no_cover" |
289 | 255 | app:layout_constraintBottom_toBottomOf="parent" |
290 | 256 | app:layout_constraintDimensionRatio="h,1:1" |
291 | | - app:layout_constraintRight_toRightOf="parent" |
| 257 | + app:layout_constraintEnd_toEndOf="parent" |
292 | 258 | app:layout_constraintTop_toTopOf="parent" |
293 | | - app:siv_use_height="true" |
294 | | - tools:layout_constraintBottom_creator="1" |
295 | | - tools:layout_constraintRight_creator="1" |
296 | | - tools:layout_constraintTop_creator="1" /> |
297 | | - |
| 259 | + app:siv_use_height="true" /> |
298 | 260 |
|
299 | 261 | </androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments