Android: multi-screen support

You have a question ... Android divides the range of actual screen sizes and densities into: A set of four general sizes: small, normal, large and xlarge. A set of four generalized densities: ldpi (low), mdpi (medium), hdpi (high) and xhdpi (extra high)

1) What has a higher priority?

Lats says that I have an hdpi device with a large screen size ... And I have 2 folders in my project: "layout-large" and "layout-hdpi" ... Which folder will my device use?

2) I have an hdpi device and 2 folders in my project ... The default folder is 'layout' and 'layou-mdpi' Why does hdpi use layou-mdpi?

3) How to name the folder? layout-mdpi-normal or layout-normal-mdpi ...

Thank...

+3
source share
1 answer

1) I assume that priority is given to naming these folders, layout-mmc-language-screensize ..... and so on. But I did not test it. Therefore, I think the screen size will be selected first.

2) layout-hdpi uses layout-mdpi because it is the best candidate (this is a folder that theoretically should better fit the hdpi screen because the layout is completely general)

3) mock normal-mdpi

+2
source

All Articles