I'm making an Android AppWidget to sit on the home screen.
The user's home screen space is precious, so I want the widget to be small. The ideal size would be 2x1 cells.
- Some documentation suggests you can have any size you like?
- But the AppWidget graphical design guidelines imply that only standard sizes are supported: 4x1, 3x3, 2x2.
- Does that refer to the available PhotoShop templates or is it a limitation of Android itself?
- I'm finding that a 2x1 widget works on my actual device (HTC Wildfire) but expands to 2x2 on the emulator.
- HTC have their own special implementation of the home screen, so maybe my widget will only work at 2x1 on HTC devices?
Is there any way to create a 2x1 widget, or should I use a standard size?
My widget was adapted from the Simple Wiktionary sample.
- The manifest has
android:minWidth="146dip"
andandroid:minHeight="72dip"
. - There's a RelativeLayout with
android:layout_width="fill_parent"
andandroid:layout_height="wrap_content"
I'm just starting with Android, so apologies in advance if this is a silly question. :)