I have a few questions:
What is the screen size?
What is the screen density?
What is a difference between screen size and screen density?
How I can support different densities and different screen sizes in Android?
I have already read the official documentation, but I was unable to understand the difference between screen size and screen density.
Density Classes:
Icon Sizes:
Screen Size Classes:
Screen Configuration:
Best Practices:
Use wrap_content, match_parent, or dp
units when specifying dimensions in an XML layout file. Except for defining text sizes: sp
(scaling depends on user setting)
Do not use hard coded pixel values in your application code.
Do not use AbsoluteLayout,use Relative Layout.
Supply alternative bitmap drawables for different screen densities.
Provide a launcher icon for xxhdpi, but no other icons.