How to figure out the ration between various values folder in android? -
i have started working on supporting multiple screen
section in android unfortunately got late , defined 3 of layout respective xxhdpi
devices. now, created following folders applying various dimensions:
- values
- values-hdpi
- values-xhdpi
- values-xxhdpi
and copy dimens.xml
in of them. reference choose create layout
xxhdpi
(nexus 5). how figure out ratio? can change dimens.xml
in values
, values-hdpi
, values-xhdpi
, nexus 6
device?
for instance here 1 dimen
instance in xxhdpi
:
<dimen name="move_in_margin_top">250dp</dimen>
i know stupid don't have other option right now.
1.0x baseline medium-density, 1.5x high-density, 2.0x extra-high-density, 3.0x extra-extra-high-density, 4.0x extra-extra-extra-high-density
Comments
Post a Comment