我正在考虑投资一台谷歌Nexus 10作为我测试应用程序的首选平板电脑--我只是想知道是否有可能效仿其他设备的屏幕分辨率?由于Nexus10拥有如此高的分辨率和DPI,我希望能够在800 x 480屏幕等情况下在它上运行我的应用程序。
我愿意这样做,如果可能的话,因为它将比使用模拟器更快,并将支持多点触摸。这看起来不需要动脑筋,但它实际上是可能的吗?
发布于 2013-01-15 00:38:08
有一种方法-亚当·鲍威尔( Android devs)的一篇G+帖子很好地解释了这一点:
https://plus.google.com/u/0/107708120842840792570/posts/cz5TxuoNDfG
基本上,您可以使用一些ADB命令来更改设备显示的分辨率:
adb shell am display-size
和
adb shell am display-density
对于设备4.3+,命令略有不同:
adb shell wm display-density
adb shell wm dislay-size
发布于 2014-07-21 20:39:18
另一种选择是使用虚拟机模拟平板电脑。我在其他教程的基础上做了一个详细的教程,链接如下:
http://edwindh.blogspot.com/2014/07/emular-uma-tablet-ou-smartphone-com.html
https://stackoverflow.com/questions/14322572
复制相似问题