4x4 appwidgets show up as 3x3 on tablets

I am creating a 4x4 appwidget application with minWidth and minHeight set to "250dp", as suggested in the Application Widget Design Guide:

http://developer.android.com/guide/practices/ui_guidelines/widget_design.html

This is normal for all the emulators of phones and phones I tried, but if I test them on a tablet (Xoom or Nexus 7) or on an emulator (resolution: 1280x752 with a resolution of 160 dpi) then the launcher detects it as a 3x3 widget.

What am I doing wrong?

Thanks Tamas

+4
source share
1 answer

Try grid size = (74*n) - 2 for an older api level. This value is taken from an old document.

0
source

All Articles