在Android模拟器上模拟320 dpi的密度 [英] Emulating density of 320 dpi on android emulator

查看:438
本文介绍了在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.

这篇关于在Android模拟器上模拟320 dpi的密度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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