Any suggestions on getting xxhdpi working in the android emulator?

前端 未结 3 1106

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

Yes, the docs say that xhdpi will sca

3条回答
  •  梦谈多话
    2021-01-12 09:01

    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:

    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:

    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.

提交回复
热议问题