Top "Xml-drawable" questions

Solid drawables in android, these drawables are placed in 'drawable' folder inside 'res' folder, these are saved as xml files

Understanding Android's <layer-list>

I don't understand how the layer-lists work. I read the official documentation with some examples but it does not work …

android xml-drawable android-drawable layer-list
how to add shadow effect on drawable in android

I have created chat bubble with drawable which looks fine, now I want to add shadow effect below the drawable …

android android-drawable xml-drawable shapedrawable
how to get android gradient center light effect?

i want something like following image i tried it using drawable shape <?xml version="1.0" encoding="utf-8"?> <shape …

android android-drawable xml-drawable
Android button select and press drawable

I'm trying to make a button with state press and select, I already did the same with tabs and it …

android button styles android-drawable xml-drawable
Android shape border with gradient

I want to create a border for a linearLayout. So I decide to create a shape. I want the border …

android android-layout android-drawable xml-drawable
Android: How to Make A Drawable Selector

I feel like this is kind of a silly question, but here I go anyways. I have an image button, …

android selector android-drawable xml-drawable android-selector
round corners with border color

I am using the following code to get rounded corners as well as a colored outline: <?xml version="1.0" encoding="…

android xml-drawable
set shape background to transparent in android

I have a shape drawable that I want to use as a background. I want the shape to be transparent. …

android android-layout transparency xml-drawable
How to use a shape drawable together with an image?

I have this difficulty to have both rounded corner and a background image in my LinearLayout. I know I can …

android android-layout xml-drawable
how to change the image of a button with every click?

I created a button in the layout . In the Drawable folder I created a XML file named btn01_state. The …

android button imagebutton xml-drawable