Providing Alternative Bitmaps !! How to recognize that initially in which bucket/drawable we need to put our image

192 Views Asked by At

Hello Androider's, I need your little help I developed many applications but from the beginning I was confused on this thing.

Suppose I have an image or a bunch of images with different resolutions. How to know in which drawable I need to put it in initially.

For example, if you have a bitmap drawable that's 412x371 pixels for medium-density screens, then we can easily scale it for other buckets according to this 3:4:6:8:12:16 scaling ratio. But how we know that 412x371 would be suitable for medium-density. We can put it in HDPI too.

So now I have couple of images that I want to use in my project but how to know which image I need to put it in which bucket initially so after that I would be able to calculate for other density buckets.

Many Thanks

1

There are 1 best solutions below

4
ΓDΛ On

First

Android Image bake

Upload your file to.

Then, after downloading it as zip, select your files from the ResourceManager in Android Studio by clicking Import Drawable. That's the whole process. You don't have to worry.