TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.FloatingActionButton, defStyleAttr, 0);
if (a != null) {
setCornerRadius((int) a.getDimension(R.styleable.FloatingActionButton_carbon_cornerRadius, -1));
if (a.hasValue(R.styleable.FloatingActionButton_android_background)) {
int color = a.getColor(R.styleable.FloatingActionButton_android_background, 0);
<BUG>if (color == 0) {
setBackground(new ColorStateListDrawable(new ControlAccentColorStateList(getContext())));
}
}</BUG>
a.recycle();

TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.FloatingActionButton, defStyleAttr, 0);
if (a != null) {
setCornerRadius((int) a.getDimension(R.styleable.FloatingActionButton_carbon_cornerRadius, -1));
if (a.hasValue(R.styleable.FloatingActionButton_android_background)) {
int color = a.getColor(R.styleable.FloatingActionButton_android_background, 0);
if (color == 0)
setBackground(new ColorStateListDrawable(new ControlAccentColorStateList(getContext())));
