widgets: add min resize width

Add a minimum resize width to widgets to maybe stop widget size limits
from being forgotten at random.
This commit is contained in:
Alexander Capehart 2022-10-26 21:02:43 -06:00
parent 1cf1451aef
commit 9debe06029
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
2 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,8 @@
android:initialLayout="@layout/widget_default"
android:minWidth="@dimen/widget_width_def"
android:minHeight="@dimen/widget_height_def"
android:minResizeHeight="@dimen/widget_height_def"
android:minResizeWidth="@dimen/widget_width_def"
android:previewImage="@drawable/ui_widget_preview"
android:previewLayout="@layout/widget_small"
android:resizeMode="horizontal|vertical"

View file

@ -3,6 +3,8 @@
android:initialLayout="@layout/widget_default"
android:minWidth="@dimen/widget_width_def"
android:minHeight="@dimen/widget_height_def"
android:minResizeHeight="@dimen/widget_height_def"
android:minResizeWidth="@dimen/widget_width_def"
android:previewImage="@drawable/ui_widget_preview"
android:resizeMode="horizontal|vertical"
android:updatePeriodMillis="0"