widgets: simplify layouts

Simplify the layouts used by widgets, moving the more version-specific
attributes into settings.
This commit is contained in:
OxygenCobalt
2021-08-05 17:00:59 -06:00
parent 8c07f8cd8c
commit b51ec756de
20 changed files with 100 additions and 299 deletions
@@ -89,9 +89,9 @@
<SeekBar
android:id="@+id/playback_seek_bar"
style="@style/Widget.SeekBar.Full"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/Widget.SeekBar.Full"
android:paddingStart="@dimen/spacing_mid_huge"
android:paddingEnd="@dimen/spacing_mid_huge"
app:layout_constraintBottom_toTopOf="@+id/playback_duration_current"
@@ -137,7 +137,6 @@
android:id="@+id/playback_skip_prev"
style="@style/Widget.Button.Unbounded"
android:layout_marginEnd="@dimen/spacing_large"
android:background="@drawable/ui_unbounded_ripple"
android:contentDescription="@string/description_skip_prev"
android:onClick="@{() -> playbackModel.skipPrev()}"
android:src="@drawable/ic_skip_prev"
@@ -159,7 +158,6 @@
android:id="@+id/playback_skip_next"
style="@style/Widget.Button.Unbounded"
android:layout_marginStart="@dimen/spacing_large"
android:background="@drawable/ui_unbounded_ripple"
android:contentDescription="@string/description_skip_next"
android:onClick="@{() -> playbackModel.skipNext()}"
android:src="@drawable/ic_skip_next"
@@ -171,8 +169,7 @@
android:id="@+id/playback_shuffle"
style="@style/Widget.Button.Unbounded"
android:layout_marginStart="@dimen/spacing_large"
android:background="@drawable/ui_unbounded_ripple"
android:contentDescription="@{playbackModel.isShuffling() ? @string/description_shuffle_off : @string/description_shuffle_on"
android:contentDescription="@string/description_shuffle"
android:onClick="@{() -> playbackModel.invertShuffleStatus()}"
android:src="@drawable/ic_shuffle"
app:layout_constraintBottom_toBottomOf="@+id/playback_skip_next"