在Android模拟器上模拟320 dpi的密度
我们正在尝试在Android 2.3中模拟密度为320 dpi的新设备- 例如Archos 101, 而且我们似乎无法定义具有这种密度的仿真器, 即使下载了最新的2.3 sdk.
We're trying to emulate devices with the new density of 320 dpi in Android 2.3 - such as Archos 101, and we can't seem to be able to define an emulator with such density, even after downloading the latest 2.3 sdk.
我真的很感谢关于这个的一些想法:)
I would really appreciate some ideas on this one :)
非常感谢!
那很简单.
在avd配置文件中修改属性hw.lcd.density=320
:
/Users/yourUserName/.android/avd/CustomDevice_API_19.avd/config.ini
,然后重新启动虚拟设备.我已经在测试它,并且对我有用!
Modify the attribute hw.lcd.density=320
at avd config file:
/Users/yourUserName/.android/avd/CustomDevice_API_19.avd/config.ini
, and reboot your virtual device. I'm already test it, and it works to me!
警告:
确保设置正确的密度,否则将收到错误消息:qemu: available lcd densities are: 120, 160, 213, 240, 280, 320, 360, 400, 420, 480, 560, 640
Warnning:
Make sure you set the correct density, otherwise you will receive an error: qemu: available lcd densities are: 120, 160, 213, 240, 280, 320, 360, 400, 420, 480, 560, 640
顺便说一句,我的Android SDK工具版本是25.2.5.
BTW my Android SDK Tools version is 25.2.5.