| package org.wordpress.android.widgets; |
| |
| import android.content.Context; |
| import android.support.v7.widget.AppCompatRadioButton; |
| import android.util.AttributeSet; |
| |
| /** |
| * A RadioButton that uses the default font from TypefaceCache |
| */ |
| public class WPRadioButton extends AppCompatRadioButton { |
| public WPRadioButton(Context context) { |
| super(context); |
| TypefaceCache.setCustomTypeface(context, this, null); |
| } |
| |
| public WPRadioButton(Context context, AttributeSet attrs) { |
| super(context, attrs); |
| TypefaceCache.setCustomTypeface(context, this, attrs); |
| } |
| |
| public WPRadioButton(Context context, AttributeSet attrs, int defStyleAttr) { |
| super(context, attrs, defStyleAttr); |
| TypefaceCache.setCustomTypeface(context, this, attrs); |
| } |
| } |