Any suggestions on getting xxhdpi working in the android emulator?

前端 未结 3 1078

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 08:58

    Using this make avd for xxhdpi emulator for making xxhdpi avd use this.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-01-12 09:09

    The right way is to set AVD settings to Use Host GPU. Unfortunately with this Snapshot will be disabled. Confirmed with SDK Tools 22.3

    0 讨论(0)
提交回复
热议问题