SwitchButton

public class SwitchButton

SwitchButton

Author

kyleduo

Since

2014-09-24

Constructors

Link copied to clipboard
public void SwitchButton(Context context, AttributeSet attrs, int defStyle)
public void SwitchButton(Context context, AttributeSet attrs)
public void SwitchButton(Context context)

Properties

Link copied to clipboard
public final static int DEFAULT_ANIMATION_DURATION
Link copied to clipboard
public final static float DEFAULT_BACK_MEASURE_RATIO
Link copied to clipboard
public final static int DEFAULT_TEXT_MARGIN_DP
Link copied to clipboard
public final static int DEFAULT_THUMB_MARGIN_DP
Link copied to clipboard
public final static int DEFAULT_THUMB_SIZE_DP
Link copied to clipboard
public final static int DEFAULT_TINT_COLOR

Functions

Link copied to clipboard
public long getAnimationDuration()
Link copied to clipboard
public ColorStateList getBackColor()
Link copied to clipboard
public Drawable getBackDrawable()
Link copied to clipboard
public float getBackMeasureRatio()
Link copied to clipboard
public float getBackRadius()
Link copied to clipboard
public PointF getBackSizeF()
Link copied to clipboard
public final float getProcess()
Link copied to clipboard
public ColorStateList getThumbColor()
Link copied to clipboard
public Drawable getThumbDrawable()
Link copied to clipboard
public float getThumbHeight()
Link copied to clipboard
public RectF getThumbMargin()
Link copied to clipboard
public float getThumbRadius()
Link copied to clipboard
public PointF getThumbSizeF()
Link copied to clipboard
public float getThumbWidth()
Link copied to clipboard
public int getTintColor()
Link copied to clipboard
public boolean isDrawDebugRect()
Link copied to clipboard
public boolean isFadeBack()
Link copied to clipboard
public void onRestoreInstanceState(Parcelable state)
Link copied to clipboard
public Parcelable onSaveInstanceState()
Link copied to clipboard
public boolean onTouchEvent(MotionEvent event)
Link copied to clipboard
public boolean performClick()
Link copied to clipboard
public void setAnimationDuration(long animationDuration)
Link copied to clipboard
public void setBackColor(ColorStateList backColor)
Link copied to clipboard
public void setBackColorRes(int backColorRes)
Link copied to clipboard
public void setBackDrawable(Drawable backDrawable)
Link copied to clipboard
public void setBackDrawableRes(int backDrawableRes)
Link copied to clipboard
public void setBackMeasureRatio(float backMeasureRatio)
Link copied to clipboard
public void setBackRadius(float backRadius)
Link copied to clipboard
public void setChecked(boolean checked)
Link copied to clipboard
public void setCheckedImmediately(boolean checked)
Link copied to clipboard
public void setDrawDebugRect(boolean drawDebugRect)
Link copied to clipboard
public void setFadeBack(boolean fadeBack)
Link copied to clipboard
public final void setProcess(float process)
Link copied to clipboard
public void setText(CharSequence onText, CharSequence offText)
Link copied to clipboard
public void setThumbColor(ColorStateList thumbColor)
Link copied to clipboard
public void setThumbColorRes(int thumbColorRes)
Link copied to clipboard
public void setThumbDrawable(Drawable thumbDrawable)
Link copied to clipboard
public void setThumbDrawableRes(int thumbDrawableRes)
Link copied to clipboard
public void setThumbMargin(RectF thumbMargin)
public void setThumbMargin(float left, float top, float right, float bottom)
Link copied to clipboard
public void setThumbRadius(float thumbRadius)
Link copied to clipboard
public void setThumbSize(PointF size)
public void setThumbSize(float width, float height)
Link copied to clipboard
public void setTintColor(int tintColor)
Link copied to clipboard
public void toggleImmediately()