user3472146
user3472146

Reputation: 3

How to make my Android app resolution suit all devices?

When creating an app using eclipse, is it enough for me to just put the same image file into the files in the drawable folder? Will android make it suit the device automatically? Or should I manually create different images with different resolutions and then put it under the drawable folder?

Upvotes: 0

Views: 371

Answers (3)

Farnabaz
Farnabaz

Reputation: 4066

you can use eclipse android icon set to create your icon for different DPIs

  • Right click on your project & Select New and then other.
  • In the type filter text section type in android icon set.
  • Select Android Icon Set from and click on Next.

Now You can create your icon

Upvotes: 0

Santosh Kathait
Santosh Kathait

Reputation: 1444

If you don't want to put different resolution image to different folder then better to put only HD image to hdpi folder and create the layout dynamically in java file using weightSum attribute

Upvotes: 0

Remy Baratte
Remy Baratte

Reputation: 316

Short answer:

Yes, android will scale your images to devices.

Long answer:

Yes, android will scale the images but... The scaled images look pretty bad on lower resolution devices and If you are unable to produce all the preffered drawables (xxhdpi xhdpi mdpi hdpi), I suggest you atleast put in the biggest version so it will be scaled down (xxhdpi). Preferably together with a hdpi version, because of the bad scaling on lower resolution screens.

Upvotes: 1

Related Questions