WISHY
WISHY

Reputation: 11999

Android Studio - drawable folder missing?

I am using Android Studio version 1.2.2 and this how my res folder looks: Res hierarchy

As you can see there are no drawable folders present. My concern:

  1. Is the drawable has been deprecated and instead of it I have to place all the images used in the app in mipmap folders.
  2. If I need to create the selectors or any shape for a view I need to place it in the "drawable" or the "mipmap".

Does anyone has clue about it?

Upvotes: 0

Views: 1884

Answers (2)

Ravikant Paudel
Ravikant Paudel

Reputation: 2286

  1. Is the drawable has been deprecated and instead of it I have to place all the images used in the app in mipmap folders.

mipmap folders are for placing your app icons in only and in case of drawer folder, any other drawable assets you use should be placed in the relevant drawable folders as before.

You should go through Google Blog which says

"It’s best practice to place your app icons in mipmap- folders (not the drawable- folders) because they are used at resolutions different from the device’s current density."

  1. If I need to create the selectors or any shape for a view I need to place it in the "drawable" or the "mipmap"

Just create drawer folder if you want to use selectors.

Upvotes: 4

RajSharma
RajSharma

Reputation: 1971

if you are building different versions of your app for different densities, you should know about the "mipmap" resource directory. This is exactly like "drawable" resources, except it does not participate in density stripping when creating the different apk targets.

But if you want to use selectors than you can create a drawable folder..

Upvotes: 0

Related Questions