mdpi - Scaling ratio in Android 3:4:6:8 -


i understand scaling ratio xxhdpi?

ldpi = 3

mdpi = 4

hdpi = 6

xhdpi = 8

xxhdpi = ?

mdpi normal, or default. scale factor 1.0.

ldpi = 0.75
mdpi = 1.0
hdpi = 1.5
xhdpi = 2.0
xxhdpi = 3.0
xxxhdpi = 4.0

you can scale factor of current screen programmatically, so:

final displaymetrics metrics = resources.getsystem().getdisplaymetrics(); scale = metrics.density; 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -