Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do we still need drawable folder in Android Resources if already have drawable - hpi, mdpi, xhdpi,xxhdpi, xxxhdpi

Image Sample

What size of image should I put into drawable folder which is not drawable - ldpi, hpi, mdpi, xhdpi,xxhdpi, xxxhdpi? Or do I still need the drawable folder?

like image 290
Khar Fai Mak Avatar asked Apr 18 '18 16:04

Khar Fai Mak


People also ask

Why there are different drawable folders in Android?

1) The reason behind the different drawable folders - to enhance user experience when using our app, by accomodating each device's screen density.

Is there a way to create Xxhdpi Xhdpi Hdpi Mdpi and LDPI Drawables from a large scale image?

Option #1: Just ship the -xxhdpi drawables and let Android downsample them for you at runtime (downside: will only work on fairly recent devices, where -xxhdpi is known). Option #2: Use Android Asset Studio to downsample them for you. Option #3: Automate the process within a graphics editor, per ssantos' answer.

What is drawable Hdpi in Android?

these are image folders for different densities. hdpi images for the Android Broad Screen set or Android Phones with the Higher resolution. ldpi Lower images quality supported by the earlier sets of the android. mdpi for medium images support. xhdi devices with maximum resolution.

What is the difference between drawable and Mipmap in Android?

The mipmap folders are for placing your app/launcher icons (which are shown on the homescreen) in only. Any other drawable assets you use should be placed in the relevant drawable folders as before.


1 Answers

Yes, we still need drawable folder. All the folders you mentioned help android app to store different density images according to their density but when you access them into your app system will select the appropriate image based on the screen's API.

enter image description hereYou could also follow documentation for further details here.

like image 179
Prashant Abdare Avatar answered Oct 13 '22 10:10

Prashant Abdare