@Override
public void drawableStateChanged() {
Drawable background = getBackground();
if(background != null) {
if(!isEnabled()) {
background.setColorFilter(Color.GRAY, PorterDuff.Mode.MULTIPLY);
} else {
background.setColorFilter(null);
}
}
}