I have an application with different sidget sizes, ie, 4×1, 4×2 and 5×2. The widget minWidgt and minHeight is,
4×1: 250dp x 40dp
4×2: 250dp x 110dp
5×2: 320dp x 110dp
Each widget uses a different layout in the widget-provider xml files.
On Gingerbread, when I try to add a widget on the home screen, the widgets appear correctly, ie, 4×1, 4×2 and 5×2. On ICS, they appear as 4×1, 4×2 and 4×2. Does anyone know why? The widget labels in the widget receiver definition (in the manifest file) are correctly defined as resource strings (widget_4x1, widget_4x2 etc).
Does anyone know what the problem is?
I think a change was made in the ICS source code, not allowing you to make the default size of your widget bigger than 4×4
http://developer.android.com/guide/topics/appwidgets/index.html
Note: To make your app widget portable across devices, your app widget’s minimum size should never be larger than 4 x 4 cells.
your widget has a size that is bigger than 4….
just let users re-size there widgets: