super(context, attrs, defStyleAttr);
TintTypedArray a = TintTypedArray.obtainStyledAttributes(context, attrs, TINT_ATTRS,
defStyleAttr, 0);
if (a.length() > 0) {
if (a.hasValue(0)) {
setBackgroundDrawable(a.getDrawable(0));
}
if (a.hasValue(1)) {
setImageDrawable(a.getDrawable(1));
}
}
a.recycle();
// Keep the TintManager in case we need it later
mTintManager = a.getTintManager();