Top "Drawable" questions

A Drawable is a graphics-related term which generally means "something to be drawn.

How to reset AnimationDrawable

I have to animate a circular count down timer and I'm doing it by animating the background of an ImageView …

android animation frame drawable
How to get Android resource ID from dynamically-created (in Java) layer-list / LayerDrawable?

The "solution #2 (dynamic)" in this question/answer post: overlay two images in android to set an imageview is very close …

android drawable layer resource-id
ImageButton does not display a particular drawable

This is rather a funny problem I have ever come across, I have a table layout with 9 image buttons, 3 per …

android layout drawable imagebutton
android get Drawable image after picasso loaded

I am using Picasso library to load image from url. The code I used is below. Picasso.with(getContext()).load(…

android callback drawable target picasso
How to Set android:textColor using drawable in Android?

I know how to set a drawable as the color of the text using xml but I don't know how …

android drawable textcolor
Invert colors of drawable

Is it possible to "invert" colors in a Drawable? Kind of what you have in a negative, you know? I …

android colors drawable
Vector Drawable in Layer List on Older Android Versions

On newer Android versions, the following code: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.…

android drawable android-vectordrawable
Apply backgroundTint to background drawable for API 19

The backgroundTint is correctly applied on API 23, but not on API 19. How can I get the drawable tinted for API 19 …

android drawable backwards-compatibility tint
Remove image resource of ImageButton

I have a transparent ImageButton. When clicked, the ImageResource of the button is set to a drawable in my drawable-hdpi …

android drawable imagebutton
DrawableCompat tinting does not work on pre-Lollipop

I'm using the new TextInputLayout to wrap an EditText. When I determine a field has an error I do the …

android drawable tint