问题描述
我想创建一个三星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.density = 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中设置密度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!