public class CheckedTextView extends AppCompatCheckedTextView implements ThemeManager.OnThemeChangedListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
CheckedTextView.OnCheckedChangeListener
Interface definition for a callback to be invoked when the checked state is changed.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
mCurrentStyle |
protected int |
mStyleId |
| Constructor and Description |
|---|
CheckedTextView(android.content.Context context) |
CheckedTextView(android.content.Context context,
android.util.AttributeSet attrs) |
CheckedTextView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyStyle(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
void |
applyStyle(int resId) |
protected RippleManager |
getRippleManager() |
protected void |
init(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
protected void |
onAttachedToWindow() |
protected void |
onDetachedFromWindow() |
void |
onThemeChanged(ThemeManager.OnThemeChangedEvent event) |
boolean |
onTouchEvent(android.view.MotionEvent event) |
void |
setBackgroundDrawable(android.graphics.drawable.Drawable drawable) |
void |
setChecked(boolean checked) |
void |
setOnCheckedChangeListener(CheckedTextView.OnCheckedChangeListener listener)
Set a listener will be called when the checked state is changed.
|
void |
setOnClickListener(OnClickListener l) |
void |
setTextAppearance(android.content.Context context,
int resId) |
void |
setTextAppearance(int resId) |
public CheckedTextView(android.content.Context context)
public CheckedTextView(android.content.Context context,
android.util.AttributeSet attrs)
public CheckedTextView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
protected void init(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
public void applyStyle(int resId)
protected void applyStyle(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
public void setOnCheckedChangeListener(CheckedTextView.OnCheckedChangeListener listener)
listener - The CheckedTextView.OnCheckedChangeListener will be called.public void setChecked(boolean checked)
public void setTextAppearance(int resId)
public void setTextAppearance(android.content.Context context,
int resId)
public void onThemeChanged(ThemeManager.OnThemeChangedEvent event)
onThemeChanged in interface ThemeManager.OnThemeChangedListenerprotected void onAttachedToWindow()
protected void onDetachedFromWindow()
public void setBackgroundDrawable(android.graphics.drawable.Drawable drawable)
protected RippleManager getRippleManager()
public void setOnClickListener(OnClickListener l)
public boolean onTouchEvent(android.view.MotionEvent event)