widgets: rework button appearance

Further rework the button layout to be alike to other modern widgets.

This changeset transforms the play button into a FAB-ish thing,
makes spacing coherent between the uses of each layout, and adds
spacers to make the buttons layout in a more appealing way.
This commit is contained in:
OxygenCobalt
2022-07-01 12:25:59 -06:00
parent e883336b04
commit e41645ee28
73 changed files with 407 additions and 341 deletions
+23 -16
View File
@@ -46,8 +46,7 @@
android:layout_alignParentBottom="true"
android:layout_gravity="center"
android:orientation="vertical"
android:paddingTop="@dimen/spacing_medium"
android:paddingBottom="@dimen/spacing_mid_small">
android:paddingTop="@dimen/spacing_medium">
<android.widget.TextView
android:id="@+id/widget_song"
@@ -71,35 +70,43 @@
android:id="@+id/widget_controls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_small"
android:layout_marginStart="@dimen/spacing_mid_small"
android:layout_marginEnd="@dimen/spacing_mid_small"
android:paddingStart="@dimen/spacing_mid_small"
android:paddingEnd="@dimen/spacing_mid_small"
android:paddingTop="@dimen/spacing_mid_small"
android:paddingBottom="@dimen/spacing_medium"
android:orientation="horizontal">
<android.widget.ImageButton
android:id="@+id/widget_skip_prev"
style="@style/Widget.Auxio.PlaybackButton.AppWidget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_width="@dimen/size_btn"
android:layout_height="@dimen/size_btn"
android:contentDescription="@string/desc_skip_prev"
android:src="@drawable/ic_skip_prev_24" />
<android.widget.ImageView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
<android.widget.ImageButton
android:id="@+id/widget_play_pause"
style="@style/Widget.Auxio.PlaybackButton.AppWidget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
style="@style/Widget.Auxio.FloatingActionButton.AppWidget"
android:layout_width="@dimen/size_btn"
android:layout_height="@dimen/size_btn"
android:contentDescription="@string/desc_play_pause"
android:src="@drawable/ic_play_24" />
android:src="@drawable/sel_playing_state_24" />
<android.widget.ImageView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
<android.widget.ImageButton
android:id="@+id/widget_skip_next"
style="@style/Widget.Auxio.PlaybackButton.AppWidget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_width="@dimen/size_btn"
android:layout_height="@dimen/size_btn"
android:contentDescription="@string/desc_skip_next"
android:src="@drawable/ic_skip_next_24" />