Month: February 2018

Android runs on an assortment of devices that offer different screen sizes and densities. For applications, Android system provides a consistent development environment across devices and handles most of the work to adjust each application’s user interface to the screen on which it is displayed.

Range of supported Screens:

Android provides support for multiple screen sizes and densities, reflecting the many different screen configurations that a device may have. One can use features of the Android system to optimise the application’s user interface for each screen configuration and ensure that the application not only renders properly, but provides the best user experience possible on each screen.

Click on build.gradle(Module:app) and add the following library under the dependencies

//Add Library compile 'com.github.chrisbanes:PhotoView:1.2.6'

Step 6: Sync Gradle

To test the code you can take the same image and test it on different devices.

Also, to check you can delete the previous LDPI, MDPI, HDPI, XHDPI formats. Then load a picture which is less clear and compare it with the XXHDPI and XXXHDPI image.(This step has particularly been done to show the difference that the image is picked by the application with respect to the Screen Resolution)

The picture will adjust according to the Resolution of the Screen(ppi density).