问题描述
我想创建一个 Samsung Galaxy XCover4S (720 x 1280 px (5.00") 294ppi 64.6% 屏占比)的模拟器.但是我只找到了如何设置预定义的密度(如 120,240,320)和许多.android\avd\~~\config 中的更多密度 (ppi).是否可以将其设置为 294?
I would like to create an emulator of Samsung Galaxy XCover4S (720 x 1280 px (5.00") 294ppi 64.6% screen-to-body ratio). However I found only how to set a predefined densities (like 120,240,320) and many more densities (ppi) in .android\avd\~~\config. Is there a posibility to set it as 294?
问候
推荐答案
没有.无法将密度设置为 294.
No. It is not possible to set the density to 294.
您只能在以下 DPI 之间进行选择:120, 160, 213, 240, 280, 320, 360, 400, 420, 480, 560, 640
You can only choose between the following DPIs:120, 160, 213, 240, 280, 320, 360, 400, 420, 480, 560, 640
要设置密度,请执行以下操作:
创建模拟器后,打开~/.android/avd/my_avd/config.ini
并追加:hw.lcd.密度=560
To set the density, do the following:
After creating the emulator, open ~/.android/avd/my_avd/config.ini
and append:hw.lcd.density=560
这篇关于如何在模拟器android studio中设置密度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!