public class Button extends AppCompatButton implements ThemeManager.OnThemeChangedListener
| Modifier and Type | Field and Description |
|---|---|
protected int |
mCurrentStyle |
protected int |
mStyleId |
| Constructor and Description |
|---|
Button(android.content.Context context) |
Button(android.content.Context context,
android.util.AttributeSet attrs) |
Button(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 |
setOnClickListener(OnClickListener l) |
void |
setTextAppearance(android.content.Context context,
int resId) |
void |
setTextAppearance(int resId) |
public Button(android.content.Context context)
public Button(android.content.Context context,
android.util.AttributeSet attrs)
public Button(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)