public void setColorStateList(ColorStateList colorStateList) {
        boolean changed = mColorStateList != colorStateList;

        mColorStateList = colorStateList;

        if (changed) {
            updateBackground();
        }
    }
public void setColorStateList(ColorStateList colorStateList) {
        boolean changed = mColorStateList != colorStateList;

        mColorStateList = colorStateList;

        if (changed) {
            updateBackground();
        }
    }
public void setColorStateList ( ColorStateList colorStateList ) { boolean changed = mColorStateList != colorStateList ; mColorStateList = colorStateList ; if ( changed ) { updateBackground ( ) ; } }
Sets color state list as background for this button.
<p/>
Xml attribute: {@code app:floatingActionButtonColor}

@param colorStateList color
Sets color state list as background for this button . <p / > Xml attribute : { @code app : floatingActionButtonColor }