Search code examples
androidandroid-screen

Android generic application requirement


I want to develop an Android application which can run on all ,screen type ,Android phones. So my question is:

Would it be okay to to keep all image resources in HDPI folder only? Or will I need all 3 type of resources LDPI , MDPI AND HDPI?

If I use relative layout for developing this app so what would happen for the images which have some text on it ( _ button background image which will have some text "Submit" ). Android will scale the image according to device screen but is it capable to scale text also accordingly?

Please suggest me how to deal with this problem.

How to make an app which can work on all type screen Android phones?


Solution

  • If you put images in HDPI folder only, it will work. but ideally you should put images according to density. also if you use 9 patches image on button background, android stretches the images according to requirement however if in some case you find that image are not properly stretching you can use separate images for landscape and portrait mode.