Top "Android-drawable" questions

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

How to center vector drawable in layer-list without scaling

I am attempting to use a VectorDrawable in a LayerList without scaling the vector. For example: <layer-list> <…

android android-drawable layer-list android-vectordrawable
How to use RoundedBitmapDrawable

Has anyone managed to use RoundedBitmapDrawable? Correct me if I'm wrong, but to my understanding, it makes a circular image …

android android-drawable android-bitmap
Progress bar with rounded corners?

I am trying to achieve this progress bar design: The current code that I have produces this: This is the …

android android-drawable android-progressbar
How to reference style attributes from a drawable?

I want to have 2 selectable themes for my application. In order to do that, I defined some attributes, like this: &…

android android-drawable android-theme android-attributes
Using layer-list to display some drawable images

Android studio 2.0 Preview 3b Hello, I have created the following layout that I want to use for a background for …

android drawable android-drawable genymotion layer-list
How rotate line in Android XML?

I'm trying to draw a diagonal line in an Android app with the XML, but it is not working. It …

android android-layout android-manifest android-xml android-drawable
Change the color of a disabled button in android

Is there a way to change the color of a disabled button in android through styles or some other form ? …

android button android-drawable
Is there a transparent color code?

I'm looking for my actionBar to be transparent. I only have searchView in it and it's in my MapActivity, I …

android transparency background-color android-drawable color-codes
How can I convert String to Drawable

I have many icon in drawable folder and I have their name as String. How can I access to drawable …

android android-drawable android-background
Setting drawable folder to use for different resolutions

I have 4 different sizes for each of the icons I need to use in my app. The problem is My …

android android-manifest android-drawable android-screen-support android-screen