fralbo
fralbo

Reputation: 2664

Where is @android:drawable looking for?

When I try to use default Android icons, I use:

android:icon="@android:drawable/ic_"

And on Android Studio, if I hit ctrl-space, I get a list of availables ic_ icons.
I suppose they come from android-sdks folder but, if yes, where exactly?
As my targetSdkVersion="22", I supposed I could find these icons, and add more ones from https://github.com/google/material-design-icons, in android-sdks/platforms/android-22/data/res/, where I can find drawable-xhdpi and all others, but obviously, it doesn't seem to be the case.
http://google.github.io/material-design-icons/#icons-for-android doesn't help me much on how to use it.
Any help?

Upvotes: 1

Views: 978

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007634

I suppose they come from android-sdks folder but, if yes, where exactly?

The IDE code-completion hopefully comes from what is in android.R.drawable for the compileSdkVersion you are using. The actual images can be found in $ANDROID_SDK/platforms/$VERSION/data/res/, where $ANDROID_SDK is wherever your Android SDK is installed and $VERSION is a directory based on your compileSdkVersion (e.g., android-22).

Upvotes: 5

Related Questions