When supporting different screen sizes (densities) in Android often the focus is on creating different layouts for every possible screen. I.E.
- ldpi
- mdpi
- hdpi
- xhdpi
- xxhdpi
- xxxhdpi
I designed a layout for an xhdpi screen as a reference, and defined it's dimensions in dimens.xml. Now I want to give support it to every possible screen size. How can I do that?
As far as I know, I can use this tool to figure out the proper dimens.xml for other screen sizes and add it to my project. Is this the right way to do it in my situation?
Another question, do I only need to create dimens.xml for above screen dimensions? If yes then what is w820dp
?
Thanks for your help. I need to support phones only (not tablets or other devices).
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…