Android:无法在模拟器中运行xxhdpi-drawable

时间:2013-10-24 11:00:27

标签: android android-emulator android-drawable

我必须使用新的drawable-xxhdpi文件夹扩展应用程序。我能够运行模拟器,但应用程序仍在加载drawable-xhdpi的图形。

我添加了文件夹(eclipse->添加新文件夹)并将其命名。

enter image description here

我尝试将drawable-xxhdpi重命名为drawable-480dpi - >没效果

这些是我对模拟器的设置(link)。 我尝试过不同的Size XLarge - >没影响):

enter image description here

我做错了什么?

1 个答案:

答案 0 :(得分:2)

经过一些研究,我找到了解决方案here!手动重启adb解决了我的问题!

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:

//(on osx/linux use "./adb shell")
adb shell setprop qemu.sf.lcd_density 480

adb shell stop

adb shell start

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.