widgets: update control layout

Rework the widget control layouts to add additional controls and to
have more consistent padding.
This commit is contained in:
OxygenCobalt
2022-06-29 11:35:49 -06:00
parent 249ddae269
commit a81b90a81f
3 changed files with 28 additions and 3 deletions
+8 -1
View File
@@ -46,12 +46,15 @@
android:layout_alignParentBottom="true"
android:layout_gravity="center"
android:orientation="vertical"
android:padding="@dimen/spacing_medium">
android:paddingTop="@dimen/spacing_medium"
android:paddingBottom="@dimen/spacing_medium">
<android.widget.TextView
android:id="@+id/widget_song"
style="@style/Widget.Auxio.TextView.Primary.AppWidget"
android:layout_width="match_parent"
android:layout_marginStart="@dimen/spacing_medium"
android:layout_marginEnd="@dimen/spacing_medium"
android:layout_height="wrap_content"
android:text="@string/def_widget_song" />
@@ -60,12 +63,16 @@
style="@style/Widget.Auxio.TextView.Secondary.AppWidget"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_medium"
android:layout_marginEnd="@dimen/spacing_medium"
android:text="@string/def_widget_artist" />
<android.widget.LinearLayout
android:id="@+id/widget_controls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small"
android:layout_marginTop="@dimen/spacing_small">
<android.widget.ImageButton