Compound button opacity not being set properly in onResume

view full story

http://stackoverflow.com – My app has several buttons which have three states: Default Selected Disabled The selector files look like so: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:state_pressed="true" android:drawable="@drawable/btn_a_selected" /> <item android:drawable="@drawable/btn_a /> </selector> For the Disabled state, I'm simply using the Default state and calling getBackground().setAlpha() to the desired opacity. To complicate things, each button is made up of a layer-list with a gra (HowTos)