Top "Statelistdrawable" questions

Question regarding Android's StateListDrawable which lets enable to assign a number of graphic images to a single Drawable and swap out the visible item by a string ID value

Error : <item> tag requires a 'drawable' attribute or child tag defining a drawable

I created a state-list selector file item_bg_selector.xml in the drawable folder like this : <selector xmlns:android="…

android layout imagebutton statelistdrawable
Statelist drawable android:state_enabled not working in xml

I'm trying to add to my existing statelist drawable, a disabled state and it just doesn't work. originally, I had …

android statelistdrawable
StateListDrawable not working

I'm trying to programatically set a StateListDrawable as the background of my custom view for a library project. Here's what …

android statelistdrawable
Can you set the background color on a toggle button without covering up the toggle?

I have a ToggleButton. I want the background to be clear, like in the default alarm app for the days …

android android-layout statelistdrawable android-togglebutton
Get specific drawable from state list drawable

I have a state list drawable, and i want to get a specific drawable from the state list drawable: <?…

android android-layout android-drawable android-input-method statelistdrawable
Alternative to set duplicateParentState to true for each child view?

Background I have a layout that has some special states (like being checked/pressed), and I wish to set its …

android android-layout android-drawable statelistdrawable