Top "Android-drawable" questions

In Android, a Drawable is a general abstraction for "something that can be drawn.

How to add an image to the "drawable" folder in Android Studio?

I need to add an image to the res/drawable folder... When I choose new > image asset, it comes …

android-studio android-drawable
How to define a circle shape in an Android XML drawable file?

I have some problems finding the documentation of the definitions of shapes in XML for Android. I would like to …

android android-drawable shapes
How to convert a Drawable to a Bitmap?

I would like to set a certain Drawable as the device's wallpaper, but all wallpaper functions accept Bitmaps only. I …

android bitmap wallpaper android-drawable
Android getResources().getDrawable() deprecated API 22

With new android API 22 getResources().getDrawable() is now deprecated. Now the best approach is to use only getDrawable(). What changed?

android android-drawable android-resources android-5.1.1-lollipop
How to change colors of a Drawable in Android?

I'm working on an android application, and I have a drawable that I'm loading up from a source image. On …

android android-drawable
Mipmaps vs. drawable folders

I'm working with Android Studio 1.1 Preview 1. I noticed that when I create a new project I'm getting the following hierarchy: …

android android-drawable mipmaps
android:drawableLeft margin and/or padding

Is it possible to set the margin or padding for the image which we added with the android:drawableLeft?

android android-layout android-drawable
Vertical line using XML drawable

I'm trying to figure out how to define a vertical line (1dp thick) to be used as a drawable. To …

android android-layout line android-xml android-drawable
Standard Android menu icons, for example refresh

The Android SDK offers the standard menu icons via android.R.drawable.X. However, some standard icons, such as ic_…

android android-drawable android-icons