I have a problem regarding my app.I have created tab bar using image button,when I run the app in 480*800 hdpi device the tab bar images are displaying perfectly when I run in 240*320 device the images in image button are not displaying properly.I have created the drawable folders and added the images also
drawable
drawable-hdpi
drawable-ldpi
drawable-mdpi
drawable-xhdpi
For detail, please refer to Android Developer Guide.
To summarize, you must declare each supporting screen sizes in your
AndroidManifest.xml
. For example, you have to include the following:To support 240*320, you must do the following:
1: In
AndroidManifest.xml
, include2: Create different
layout-small
folder:3: Create
drawable-ldpi
folder (you already did):Try following scenario of layout. I found at http://jamil.fluidsoul.net/2011/03/06/creating-android-applications-for-multiple-screen-sizes.
If outcome display in Graphical layout best matches with all other, you will get same output in original device also.
You have to read below document first:- http://developer.android.com/guide/practices/screens_support.html
or
Is there a list of screen resolutions for all Android based phones and tablets?
above also hope use full to you.