widgets: fix minor issues

Fix problems with weird margins in the small/wide widgets and change
the initial layout from widget_medium to widget_default.

The latter is nice, as it allows for more cohesion between the default
state and the "unhooked" state that's shown when the phone boots.
This commit is contained in:
OxygenCobalt 2021-11-16 16:48:40 -07:00
parent 71b15a3a6a
commit e3f4a6fefa
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
5 changed files with 7 additions and 7 deletions

View file

@ -55,8 +55,8 @@
android:layout_alignParentBottom="true"
android:paddingTop="@dimen/spacing_small"
android:paddingBottom="@dimen/spacing_small"
android:paddingStart="@dimen/spacing_medium"
android:paddingEnd="@dimen/spacing_medium"
android:paddingStart="@dimen/spacing_small"
android:paddingEnd="@dimen/spacing_small"
android:elevation="@dimen/elevation_normal"
android:orientation="horizontal"
android:background="@drawable/ui_widget_panel"

View file

@ -59,8 +59,8 @@
android:orientation="horizontal"
android:paddingTop="@dimen/spacing_small"
android:paddingBottom="@dimen/spacing_small"
android:paddingStart="@dimen/spacing_medium"
android:paddingEnd="@dimen/spacing_medium">
android:paddingStart="@dimen/spacing_small"
android:paddingEnd="@dimen/spacing_small">
<android.widget.ImageButton
android:id="@+id/widget_loop"

View file

@ -33,5 +33,5 @@
<dimen name="widget_width_min">176dp</dimen>
<dimen name="widget_height_min">110dp</dimen>
<dimen name="widget_width_def">@dimen/widget_width_min</dimen>
<dimen name="widget_height_def">180dp</dimen>
<dimen name="widget_height_def">110dp</dimen>
</resources>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/info_widget_desc"
android:initialLayout="@layout/widget_medium"
android:initialLayout="@layout/widget_default"
android:minWidth="@dimen/widget_width_def"
android:minHeight="@dimen/widget_height_def"
android:minResizeWidth="@dimen/widget_width_min"

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:initialLayout="@layout/widget_medium"
android:initialLayout="@layout/widget_default"
android:minWidth="@dimen/widget_width_def"
android:minHeight="@dimen/widget_height_def"
android:minResizeWidth="@dimen/widget_width_min"