Custom density settings for the emulator

I am trying to create an emulator with a resolution of 200 dpi, i.e. between mdpi and hpdi.

that's what i tried so far

enter image description here

and in the manifest declaring

android:anyDensity="true"

but this does not create an emulator with 200dpi, it creates an emulator created using 240dpi. that is, the emulator can only be 120 or 160 or 240 dpi. any value between this rounded to the upper range, which is 80 β†’ 120; 200 β†’ 240, etc.

I want to test my Tablet app with 170dpi, and in no case can I create an emulator with this configuration.

Currently, I can’t get the correct result for this problem and 2-3 questions that have the same problem but do not satisfy the answers or comments.

Assume that an emulator with a density other than 120, 160, 240, or 320 dpi can be implemented. Thus, you can create a configuration in the eclipse graphic layout with a resolution of 170 dpi or 200 dpi so that I can make alternative resources for this device. enter image description here

in addition to providing a value of High, medium, low, or xHigh, there is a way to provide a custom value.

I look forward to your help

+6
source share
1 answer

Try to start the emulator before starting the application using the AVD manager. Thus, you can set the "scale the display in real size, and then get the desired DPI

0
source

Source: https://habr.com/ru/post/908726/


All Articles