public class TextView extends AppCompatTextView implements ThemeManager.OnThemeChangedListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
TextView.OnSelectionChangedListener |
| Modifier and Type | Field and Description |
|---|---|
protected int |
mCurrentStyle |
protected int |
mStyleId |
| Constructor and Description |
|---|
TextView(android.content.Context context) |
TextView(android.content.Context context,
android.util.AttributeSet attrs) |
TextView(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() |
protected void |
onSelectionChanged(int selStart,
int selEnd) |
void |
onThemeChanged(ThemeManager.OnThemeChangedEvent event) |
boolean |
onTouchEvent(android.view.MotionEvent event) |
void |
setBackgroundDrawable(android.graphics.drawable.Drawable drawable) |
void |
setOnClickListener(OnClickListener l) |
void |
setOnSelectionChangedListener(TextView.OnSelectionChangedListener listener) |
void |
setTextAppearance(android.content.Context context,
int resId) |
void |
setTextAppearance(int resId) |
public TextView(android.content.Context context)
public TextView(android.content.Context context,
android.util.AttributeSet attrs)
public TextView(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 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)
public void setOnSelectionChangedListener(TextView.OnSelectionChangedListener listener)
protected void onSelectionChanged(int selStart,
int selEnd)