Question

Please anyone tell me that how to make android application compatible on all devices? I want to run the same application on tablet, which is running well on 320 * 420. I tried following things:-

  1. Made all images suitable to ldpi,mdpi,hdpi and xhdpi and wrote the code for corresponding layout as layout-small, layout-normal, layout-large, layout-xlarge respectively.
  2. Following in manifest file:-

But still it's not working properly. Please suggest something helpful. . Thanks in advance.

Was it helpful?

Solution

I think you have a problem with Layout or we can say UI. You did not explain what is your actual problem,But If you have problem with UI that is If images you use is not showing properly on all device then you have to use different Images with High,medium and low resolution and put it as in hdpi,mdpi,ldpi folders,other things you done right using support screen and all. You can use 9 patch tool for this. Use high definition Images so It will good for you.

OTHER TIPS

You should not place same size images in every folder (ldpi, mdpi, hdpi, xhdpi), For ldpi design different layout and images , for mdpi design different layout and images and so on for others too . If you will follow this pattern it will work. For details information check this link

http://developer.android.com/guide/practices/screens_support.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top