问题描述
我创建一个4×4 appwidget与和了minWidth设置了minHeight为250dp,因为它是建议在应用小工具设计准则:
I create an 4x4 appwidget with minWidth and minHeight set to "250dp" as it is suggested inApp Widget Design Guidelines:
http://developer.android.com/guide/practices/ui_guidelines/ widget_design.html
这是确定的每一个电话和手机大小的仿真器我都试过,但如果我测试它在平板电脑(Xoom的或的Nexus 7),或在一个仿真器(分辨率:1280x752 dpi的带160)然后启动检测为3×3的小工具。
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.
我是什么做错了吗?
谢谢,塔马斯
推荐答案
尝试栅格尺寸=(74 * N) - 2
老年人API级别。此值来自于旧的文件。
Try grid size = (74*n) - 2
for older api level. This value come from old document.
这篇关于4×4 appwidgets被检测为3×3的平板电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!