4x4 appwidgets are detected as 3x3 on tablets

2019-02-18 06:26发布

I create an 4x4 appwidget with minWidth and minHeight set to "250dp" as it is suggested in App Widget Design Guidelines:

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

It is ok on every phones and phone-sized emulator I have tried but if I test it on a tablet (Xoom or Nexus 7) or on an emulator (resolution: 1280x752 with dpi 160) then the launcher detects it as 3x3 widget.

What am I doing wrong?

Thanks, Tamas

1条回答
相关推荐>>
2楼-- · 2019-02-18 06:39

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

查看更多
登录 后发表回答