i want a default pixel size of image in this size should be adaptable for all type of screen size.Anyone can help me please, How to fix image in all type of mobile screen. it cant be stretched out. thanks in advance.
Asked
Active
Viewed 426 times
2 Answers
1
There is no default pixel size.
You will either have to design images for each bucket you wish to support, or try and create a 9-patch for your images.
The Supporting Multiple Screens document has everything you need to having your UI scale nicely across devices.

Raghav Sood
- 81,899
- 22
- 187
- 195
-
thanks, but i have one doubt, i put my all images in mdpi, if i run this app to large screen the images are stretched.... what i want to do please help me? – NandhiniKumar Jun 26 '13 at 04:54
-
@NandhiniKumar That's because larger devices would be hdpi or even xhdpi and so on. You'll need to design larger graphics for those. – Raghav Sood Jun 26 '13 at 04:55
-
okay,got your point, but if i put the same images with high ratio and resolution, its having a possible to increase my App size right? am so confused sir...? – NandhiniKumar Jun 26 '13 at 05:09
-
can you send me a pixel resolution and ratio for mdpi, hdpi and xhdpi – NandhiniKumar Jun 26 '13 at 05:12
0
Sorry, You cannot have a Default size...
If you are developing a Mobile app, then you should detect the User's screen size and use an appropriate dimension of the picture there....
Have at least three different variations of the same picture for different screen sizes..
Android Has an inbuilt way of doing this Have a look at this : Supporting Different Screen Sizes

Ashrith Sheshan
- 654
- 4
- 17
-
thanks, but i have one doubt, i put my all images in mdpi, if i run this app to large screen the images are stretched.... what i want to do please help me... – NandhiniKumar Jun 26 '13 at 04:57
-
@NandhiniKumar Yes the Larger screen device will need bigger resolution Images to display without stretching... Try getting a Bigger ( Higher resolution/ Higher Pixel Ratio ) image and Put it under the HDPI and XHDPI folders ... that should solve the problem. – Ashrith Sheshan Jun 26 '13 at 05:01
-
okay,got your point, but if i put the same images with high ratio and resolution, its having a possible to increase my App size right? am so confused sir...? – NandhiniKumar Jun 26 '13 at 05:07
-
can you send me a pixel resolution and ratio for mdpi, hdpi and xhdpi – NandhiniKumar Jun 26 '13 at 05:11
-
@NandhiniKumar and yes Including High Density Images will definetely increase your app size... But we can't help it. – Ashrith Sheshan Jun 26 '13 at 05:15
-
yes you'r correct...what about this size.. xlarge screens are 960dp x 720dp large screens are 640dp x 480dp normal screens are 470dp x 320dp small screens are 426dp x 320dp – NandhiniKumar Jun 26 '13 at 05:20
-
Google Suggests these Standard Ratios : [Refer to Ducumentation here](http://developer.android.com/guide/practices/screens_support.html#DesigningResources) 36x36 for low-density 48x48 for medium-density 72x72 for high-density 96x96 for extra high-density – Ashrith Sheshan Jun 26 '13 at 05:20
-
-
thank you so much sir...thanks for your helping your all points are valuable to me thanks – NandhiniKumar Jun 26 '13 at 05:25
-
if i including high density images it will surely increase my app size, how to solve this issue? its having any possible to reduce my app size? – NandhiniKumar Jun 26 '13 at 06:16
-
All the ways of reducing the APK file Size are mentioned here : [Click here](http://developer.sonymobile.com/2012/01/31/tips-for-reducing-apk-file-size/) – Ashrith Sheshan Jun 26 '13 at 06:19
-
If you are asking me only for the Pictures... then I would suggest you to use high compression and lossless Formats (PNG and JPEG) only .. they take less space without compromising on quality.. – Ashrith Sheshan Jun 26 '13 at 06:21
-
oh nice, if i use .png and .jpeg format pictures in mdpi, hdpi and xhdpi folders means its take only less space right? – NandhiniKumar Jun 26 '13 at 06:24
-
Yes.... The article mentions ways of reducing the PNG and JPEG file size using some Optimizer applications .... try those it may help.. – Ashrith Sheshan Jun 26 '13 at 06:26