I am just using simple default layout and not adding any of these layout versions; l-dpi-Layout
,m-dpi-layout
etc.. then what exactly the resolution of my default layout is?
Let say i add an image and define its width-height
as 20dp X 20dp
. This image is looking perfect in layout Preview
screen, but would it look same in 1440X2560
screen or 1920X1080
screen.
My concerns are:
- what exactly is the resolution of default layout is?
- How would android know that the
20 dpi
i am defining fits best for1080X1920
resolution and27dpi
fits best1440X2560 screen
, when i am writing20dpi
in my default layout which perfectly fits inlayout preview
screen