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

标签 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

我做错了什么?

最佳答案

经过更多研究,我找到了解决方案 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.

关于Android:无法在模拟器中运行 xxhdpi-drawable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19564083/

相关文章:

android - Android 游戏的服务器

android - 字符串资源中的 HTML

Android 加载自定义数字选择器可绘制 [内图]

android-emulator - 从 Android 模拟器中删除密码?

java - 通过另一个 Activity 的 onClick 事件将值传递给其容器 Activity 的两个 fragment

Android Wear 模拟器显示 Google Play 服务错误 SERVICE_VERSION_UPDATE_REQUIRED

android-studio - 带有 Retina 显示屏的 OS X 上的 Android 模拟器

android - Shape Drawable gradientRadius 仅适用于像素。这不是没用吗? % 值不起作用

android - 无法更改 android 4.1.2 上的选项卡图标

android - 在 Mac OS 上使用 gradle 从 SVG for Android 生成可绘制对象