I have a 150 x 210 dp widget for xhdpi devices (API 14+). When I add the widget, it occupies more space than it should. It allows me to resize it to occupy smaller space (but WHY it isn't added at the minimum size(like when I resize it)? ) Because I cand resize it to make it smaller, I guess the values I specified for the minimum size are correct... My expectation would be to occupy by default the minimum size I specified, not only when I resize it...
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="@dimen/recording_widget_min_width"
android:minHeight="@dimen/recording_widget_min_height"
android:updatePeriodMillis="86400000"
android:previewImage="@drawable/ic_launcher"
android:initialLayout="@layout/recording_widget_layout"
android:resizeMode="horizontal|vertical"
android:widgetCategory="home_screen">
</appwidget-provider>
values-xhdpi-v14
folder:
<resources>
<dimen name="recording_widget_min_width">150dp</dimen>
<dimen name="recording_widget_min_height">210dp</dimen>
</resources>