TintCheckBoxpublic class TintCheckBox extends android.widget.CheckBox An tint aware {@link android.widget.CheckBox}. |
Fields Summary |
---|
private static final int[] | TINT_ATTRS | private final TintManager | mTintManager |
Constructors Summary |
---|
public TintCheckBox(android.content.Context context)
this(context, null);
| public TintCheckBox(android.content.Context context, android.util.AttributeSet attrs)
this(context, attrs, android.R.attr.checkboxStyle);
| public TintCheckBox(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr)
super(context, attrs, defStyleAttr);
TintTypedArray a = TintTypedArray.obtainStyledAttributes(context, attrs, TINT_ATTRS,
defStyleAttr, 0);
setButtonDrawable(a.getDrawable(0));
a.recycle();
mTintManager = a.getTintManager();
|
Methods Summary |
---|
public void | setButtonDrawable(int resid)
setButtonDrawable(mTintManager.getDrawable(resid));
|
|