TintRadioButtonpublic class TintRadioButton extends android.widget.RadioButton An tint aware {@link android.widget.RadioButton}. |
Fields Summary |
---|
private static final int[] | TINT_ATTRS | private final TintManager | mTintManager |
Constructors Summary |
---|
public TintRadioButton(android.content.Context context)
this(context, null);
| public TintRadioButton(android.content.Context context, android.util.AttributeSet attrs)
this(context, attrs, android.R.attr.radioButtonStyle);
| public TintRadioButton(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));
|
|