I want to set background for the button. With Android 4.1.2
everything works fine, but if launch with Android 4.0
I've got an error
java.lang.NoSuchMethodError: android.widget.Button.setBackground
with code
LayerDrawable composite = new LayerDrawable(layers);
button.setBackground(composite);
So how can I set LayerDrawable
background but with Android 4.0
or earlier?