FileDocCategorySizeDatePackage
TintRadioButton.javaAPI DocAndroid 5.1 API1779Thu Mar 12 22:22:56 GMT 2015android.support.v7.internal.widget

TintRadioButton

public class TintRadioButton extends android.widget.RadioButton
An tint aware {@link android.widget.RadioButton}.
hide

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 voidsetButtonDrawable(int resid)

        setButtonDrawable(mTintManager.getDrawable(resid));