Top "Drawable" questions

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

Retrieving all Drawable resources from Resources object

In my Android project, I want to loop through the entire collection of Drawable resources. Normally, you can only retrieve …

android collections resources drawable
Localization and drawables

I want to localize an image by adding the folder res/drawable-hdpi-no, but I get an error stating "invalid resource …

android resources localization drawable
Is it possible to load a drawable from the assets folder?

Can you load a drawable from a sub directory in the assets (not the drawable folder) folder?

android drawable assets
Changing a divider with setDivider in a ListActivity without a custom ListView?

I can't seem to get a customized divider, using a Drawable I've defined, to work when using a ListActivity and …

android android-listview drawable listactivity divider
Android: Cloning a drawable in order to make a StateListDrawable with filters

I'm trying to make a general framework function that makes any Drawable become highlighted when pressed/focused/selected/etc. My …

android android-widget drawable
Android set XML shape as drawable programmatically

Hello I have a drawable myshape.xml, it contains a <shape> and I cannot set an android:id …

android xml resources drawable shape
Center CheckBox drawable within itself

I have a CheckBox that I want centered within its own boundaries, not pushed to the side. Probably easier demonstrated …

android android-layout checkbox drawable padding
How to make bottom border in drawable shape XML selector?

I'm trying to create a drawable shape with different states for my button. So I wrote this: <selector xmlns:…

android drawable xml-drawable shapedrawable
How to set drawable size in layer-list

I'm having problem with setting size of drawable in layer-list. My XML looks like this: <layer-list xmlns:android="http://…

android list android-layout size drawable
Text with shapes in drawable resource

Can i create text-shape in drawable resource? I was googling much but found nothing... Here is my drawable file: <?…

android text resources drawable shape