public class ShineButton extends PorterShapeImageView implements android.widget.Checkable
| Modifier and Type | Class and Description |
|---|---|
static interface |
ShineButton.OnCheckedChangeListener
点击切换的监听
|
class |
ShineButton.OnClickListenWrapper |
| Constructor and Description |
|---|
ShineButton(android.content.Context context) |
ShineButton(android.content.Context context,
android.util.AttributeSet attrs) |
ShineButton(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
| Modifier and Type | Method and Description |
|---|---|
ShineButton |
enableFlashing(boolean enable) |
void |
fitDialog(android.app.Dialog dialog)
修复对话框中显示的问题
|
void |
fitFragment(Fragment fragment) |
int |
getColor() |
android.view.Window |
getWindow() |
void |
initWindow(android.app.Activity activity) |
void |
initWindow(android.view.Window window) |
boolean |
isChecked() |
void |
removeView(android.view.View view) |
ShineButton |
setAllowRandomColor(boolean allowRandomColor) |
ShineButton |
setAnimDuration(int durationMs) |
ShineButton |
setBigShineColor(int color) |
void |
setCancel() |
void |
setChecked(boolean checked) |
void |
setChecked(boolean checked,
boolean anim) |
ShineButton |
setCheckedColor(int checkedColor) |
ShineButton |
setClickAnimDuration(int durationMs) |
ShineButton |
setIconResource(int resId) |
ShineButton |
setNormalColor(int normalColor) |
ShineButton |
setOnCheckStateChangeListener(ShineButton.OnCheckedChangeListener listener) |
void |
setOnClickListener(android.view.View.OnClickListener listener) |
ShineButton |
setShineCount(int count) |
ShineButton |
setShineDistanceMultiple(float multiple) |
ShineButton |
setShineSize(int size) |
ShineButton |
setShineTurnAngle(float angle) |
ShineButton |
setSmallShineColor(int color) |
ShineButton |
setSmallShineOffAngle(float angle) |
void |
showAnim() |
void |
toggle() |
paintMaskCanvas, setIconDrawableinvalidate, onDraw, onMeasure, onSizeChanged, setTintColorpublic ShineButton(android.content.Context context)
public ShineButton(android.content.Context context,
android.util.AttributeSet attrs)
public ShineButton(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
public void fitDialog(android.app.Dialog dialog)
dialog - public void fitFragment(Fragment fragment)
public int getColor()
public boolean isChecked()
isChecked in interface android.widget.Checkablepublic void toggle()
toggle in interface android.widget.Checkablepublic ShineButton setNormalColor(int normalColor)
public ShineButton setCheckedColor(int checkedColor)
public void setChecked(boolean checked,
boolean anim)
public void setChecked(boolean checked)
setChecked in interface android.widget.Checkablepublic void setCancel()
public ShineButton setAllowRandomColor(boolean allowRandomColor)
public ShineButton setAnimDuration(int durationMs)
public ShineButton setBigShineColor(int color)
public ShineButton setClickAnimDuration(int durationMs)
public ShineButton enableFlashing(boolean enable)
public ShineButton setShineCount(int count)
public ShineButton setShineDistanceMultiple(float multiple)
public ShineButton setShineTurnAngle(float angle)
public ShineButton setSmallShineColor(int color)
public ShineButton setSmallShineOffAngle(float angle)
public ShineButton setShineSize(int size)
public void setOnClickListener(android.view.View.OnClickListener listener)
public void initWindow(android.app.Activity activity)
public void initWindow(android.view.Window window)
public void showAnim()
public void removeView(android.view.View view)
public android.view.Window getWindow()
public ShineButton setIconResource(int resId)
public ShineButton setOnCheckStateChangeListener(ShineButton.OnCheckedChangeListener listener)