在得到xxhdpi在Android模拟器的工作有什么建议? [英] Any suggestions on getting xxhdpi working in the android emulator?

查看:117
本文介绍了在得到xxhdpi在Android模拟器的工作有什么建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经试过手动配置AVD支持xxhdpi(480 DPI),但是Android模拟器马克塞斯在xhdpi(320 DPI)。

I've tried manually configuring an AVD to support xxhdpi (480 dpi), however the android emulator maxes out at xhdpi (320 dpi).

是的,文档说xhdpi将规模,不过,我倒要看看它的工作。

Yes, the docs say that xhdpi will scale, however, I'd like to see it working.

目前,我试图从源头code构建Android,看看我是否可以手动调整任何东西。

I'm currently attempting to build android from the source code, to see if I can tweak anything manually.

推荐答案

这可以用一些额外的亚行命令仿真器启动后。取自安装故障排除页面developer.sonymobile.com(<一href="http://developer.sonymobile.com/knowledge-base/sdks/sony-add-on-sdk/install-the-sony-add-on-sdk/">http://developer.sonymobile.com/knowledge-base/sdks/sony-add-on-sdk/install-the-sony-add-on-sdk/),下面的语句可以:

This can be accomplished with a few additional adb-commands after the emulator has started. Taken from an installation troubleshooting page at developer.sonymobile.com (http://developer.sonymobile.com/knowledge-base/sdks/sony-add-on-sdk/install-the-sony-add-on-sdk/), the following statement is available:

在Android的SDK工具版本21.1,尚不支持xxhdpi屏幕分辨率仿真器显示。但是,你可以做仿真器的LCD性能的手动控制装置。这将确保正确的资源被分派了Xperia™Z模拟器。要做到这一点,请执行以下的   了Xperia™Z模拟器后,命令行已经完成了启动顺序:

In the Android SDK Tools version 21.1, the xxhdpi screen resolution for the emulator display is not yet supported. However, you could do a manual override of the LCD properties of the emulator. This will ensure that the correct resources are being dispatched for the Xperia™ Z emulator. To do so, please execute the following in your command line after the Xperia™ Z emulator has completed the boot sequence:

亚行外壳setprop qemu.sf.lcd_density 480

adb shell setprop qemu.sf.lcd_density 480

亚行外壳停止

亚行的shell启动

仿真器将重新启动。后它已重新启动模拟器应该用正确的屏幕密度和UI缩放。我们建议您使用批处理文件或shell脚本,如果你经常使用这些设置来执行这些赞扬。

The emulator will then restart. After it has rebooted the emulator should use the correct screen density and UI scaling. We recommend you to execute these commends using a batch file or a shell script if you are using these settings often.

这篇关于在得到xxhdpi在Android模拟器的工作有什么建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆