Search code examples
androidimageviewdrawableandroid-drawable

Android: Same Image needs to be added in all drawable folders?


I am directly adding images in drawable folders and it is coming fine with ImageView tag android:src="@drawable/image_name" but I wonder what to do with the other drawable folders as shown below.

enter image description here

Do I need to add same image in all drawable folders or my way of adding images in drawable folders is wrong?

Please help me!


Solution

  • The image is same, but the size should be different for each folders. If you add the image only in drawable folder, same image will be loaded for all screen resolutions. So for eg: if the image size is small, this may result in bad image quality.

    You can find a similar question here

    I use Android studio plugin Android Drawable Importer