问题描述
是的,我将在实际设备上测试(当它到达时),但是现在很高兴知道:
Yes I will test on the actual device (when it arrives) but would be nice to know now:
如何设置设备定义,以便我可以运行类似于玻璃的仿真器.
How to setup a device definition so I can run an emulator that is something like glass.
关键是:
大小:玻璃将自己报告为什么大小:小,普通,大,XLarge
Size: What size does glass "report" itself as: Small, Normal, Large, XLarge
屏幕比例:不长还是长?
Screen Ratio: notlong or Long?
密度桶:xxhdpi?还是什么?
Density bucket: xxhdpi? or what?
其他:将其设置为使用DPad输入完全有帮助还是接近Glass上的导航?其他提示?
Other: does setting it up for DPad input help at all or come close to the nav on Glass? Other tips?
注意:是的,我知道mirror API的游乐场,但是我正在开发的不是APK的APK.
Note: Yes I know about the mirror API playground, but I'm developing APKs not mirror-api.
推荐答案
DisplayMetrics在Glass Explorer版本上提供以下输出:
DisplayMetrics gives this output on Glass Explorer edition:
DisplayMetrics {密度= 1.5,宽度= 640,高度= 360,scaledDensity = 1.5,xdpi = 180.62222,ydpi = 169.33333}
DisplayMetrics{density=1.5, width=640, height=360, scaledDensity=1.5, xdpi=180.62222, ydpi=169.33333}
所以它确实看起来像hdpi.
So it does indeed look like hdpi.
而且屏幕尺寸很小:
....
else if ((getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_SMALL) {
Log.d(TAG,"SMALL screen");
}
它是"notlong"
And it is "notlong"
这篇关于Google Glass(对于Eclipse或Android Studio中的模拟器)正确的设备定义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!