public class RCheckHelper extends RTextViewHelper
ICON_DIR_BOTTOM, ICON_DIR_LEFT, ICON_DIR_RIGHT, ICON_DIR_TOP, mHasPressedTextColor, mHasSelectedTextColor, mHasUnableTextColor, mPaddingBottom, mPaddingLeft, mPaddingRight, mPaddingTop, mTextColorNormal, mTextColorPressed, mTextColorSelected, mTextColorStateList, mTextColorUnable, statesBG_TYPE_COLOR, BG_TYPE_COLOR_ARRAY, BG_TYPE_IMG, mContext, mView| 构造器和说明 |
|---|
RCheckHelper(android.content.Context context,
android.widget.CompoundButton view,
android.util.AttributeSet attrs) |
| 限定符和类型 | 方法和说明 |
|---|---|
android.graphics.drawable.Drawable |
getIconChecked() |
int |
getTextColorChecked() |
void |
onTouchEvent(android.view.MotionEvent event)
触摸事件逻辑
备注:用于库内确定逻辑的调用,不建议开发者直接调用
|
void |
setChecked(boolean checked)
选中监听,用于更新icon状态
备注:用于库内确定逻辑的调用,不建议开发者直接调用
|
RCheckHelper |
setIconChecked(android.graphics.drawable.Drawable icon)
icon
|
protected void |
setTextColor() |
RCheckHelper |
setTextColor(int normal,
int pressed,
int unable,
int checked,
int selected) |
RCheckHelper |
setTextColorChecked(int textColor) |
RCheckHelper |
setTextColorNormal(int textColor)
text color
|
getIconDirection, getIconHeight, getIconNormal, getIconPressed, getIconSelected, getIconUnable, getIconWidth, getTextColorNormal, getTextColorPressed, getTextColorSelected, getTextColorUnable, getTypefacePath, setEnabled, setIcon, setIconDirection, setIconHeight, setIconNormal, setIconPressed, setIconSelected, setIconSize, setIconUnable, setIconWidth, setSelected, setTextColor, setTextColorPressed, setTextColorSelected, setTextColorUnable, setTypefacedp2px, getBackgroundColorChecked, getBackgroundColorCheckedArray, getBackgroundColorNormal, getBackgroundColorNormalArray, getBackgroundColorPressed, getBackgroundColorPressedArray, getBackgroundColorSelected, getBackgroundColorSelectedArray, getBackgroundColorUnable, getBackgroundColorUnableArray, getBackgroundDrawableChecked, getBackgroundDrawableNormal, getBackgroundDrawablePressed, getBackgroundDrawableSelected, getBackgroundDrawableUnable, getBorderColorChecked, getBorderColorNormal, getBorderColorPressed, getBorderColorSelected, getBorderColorUnable, getBorderDashGap, getBorderDashWidth, getBorderWidthChecked, getBorderWidthNormal, getBorderWidthPressed, getBorderWidthSelected, getBorderWidthUnable, getCornerRadius, getCornerRadiusBottomLeft, getCornerRadiusBottomRight, getCornerRadiusTopLeft, getCornerRadiusTopRight, getGradientCenterX, getGradientCenterY, getGradientRadius, getGradientType, getRippleColor, getRippleMaskDrawable, getShadowColor, getShadowDx, getShadowDy, getShadowRadius, isOutsideView, setBackgroundColorChecked, setBackgroundColorCheckedArray, setBackgroundColorNormal, setBackgroundColorNormalArray, setBackgroundColorPressed, setBackgroundColorPressedArray, setBackgroundColorSelected, setBackgroundColorSelectedArray, setBackgroundColorUnable, setBackgroundColorUnableArray, setBackgroundDrawableChecked, setBackgroundDrawableNormal, setBackgroundDrawablePressed, setBackgroundDrawableSelected, setBackgroundDrawableUnable, setBorderColor, setBorderColorChecked, setBorderColorNormal, setBorderColorPressed, setBorderColorSelected, setBorderColorUnable, setBorderDash, setBorderDashGap, setBorderDashWidth, setBorderWidth, setBorderWidthChecked, setBorderWidthNormal, setBorderWidthPressed, setBorderWidthSelected, setBorderWidthUnable, setCornerRadius, setCornerRadius, setCornerRadiusBottomLeft, setCornerRadiusBottomRight, setCornerRadiusTopLeft, setCornerRadiusTopRight, setGradientCenterX, setGradientCenterY, setGradientOrientation, setGradientRadius, setGradientType, setRippleColor, setRippleMaskDrawable, setShadowColor, setShadowDx, setShadowDy, setShadowRadius, setStateBackgroundColor, setStateBackgroundColor, setStateBackgroundColorArray, setUseRipple, useRipple, useShadowpublic RCheckHelper(android.content.Context context,
android.widget.CompoundButton view,
android.util.AttributeSet attrs)
public RCheckHelper setTextColorNormal(int textColor)
setTextColorNormal 在类中 RTextViewHelperpublic RCheckHelper setTextColorChecked(int textColor)
public int getTextColorChecked()
public RCheckHelper setTextColor(int normal, int pressed, int unable, int checked, int selected)
protected void setTextColor()
setTextColor 在类中 RTextViewHelperpublic RCheckHelper setIconChecked(android.graphics.drawable.Drawable icon)
public android.graphics.drawable.Drawable getIconChecked()
public void onTouchEvent(android.view.MotionEvent event)
RTextViewHelperonTouchEvent 在类中 RTextViewHelperpublic void setChecked(boolean checked)
checked -