Creating Resources for multiple screens
Android application runs on many android devices. To work with multiple devices, it will make scaling and resizing to make work with the devices. Even it adjust the screen, the user may experience bad with the application due to blurring of images, stretching the images, overlapping views etc.
To work with the multiple resolutions, we have to design multiple layouts.
Some important terms:
The quantity of pixels within a physical area of the screen is known as dpi(dots per inch).
Low density screen contains less pixels where as high density screen contains more pixels within given physical area.
Android groups all actual densities into 4 general densities
Low density, medium density, high density and extra high density pixels.
Hdpi, mdpi, hdpi,xhdpi.
Actual physical size of screen, measured as the screen’s diagonal. Android combined all the screens into 4 generalized screens.
Those are small, normal, large and extra large.
Orientation will change dynamically when rotate the mobile. we have to consider orientation when designing screen.
Different screen contain different resolutions. We have to consider the resolutions and we have to design different screens for different resolutions.
Different screen resolutions
Extra large screens are atleast 960dp x 720dp
Large screens are atleast 640dp x 480dp
Normal screens are atleast 470dp x 320dp
Small screens are atleast 426dp x 320dp