Issue
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?
Solution
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
).
Answered By - CommonsWare
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.