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, mClipHelper, mContext, mView| 构造器和说明 |
|---|
RCheckHelper(Context context,
CompoundButton view,
AttributeSet attrs) |
| 限定符和类型 | 方法和说明 |
|---|---|
Drawable |
getIconChecked()
已过时。
|
Drawable |
getIconCheckedBottom() |
Drawable |
getIconCheckedLeft() |
Drawable |
getIconCheckedRight() |
Drawable |
getIconCheckedTop() |
int |
getTextColorChecked() |
protected boolean |
isSingleDirection()
是否仅支持单一方向ICON
老版本仅支持单一方向icon,版本兼容判断逻辑
|
void |
onTouchEvent(MotionEvent event)
触摸事件逻辑
备注:用于库内确定逻辑的调用,不建议开发者直接调用
|
void |
setChecked(boolean checked)
选中监听,用于更新icon状态
备注:用于库内确定逻辑的调用,不建议开发者直接调用
|
RCheckHelper |
setIconChecked(Drawable icon)
已过时。
|
RCheckHelper |
setIconCheckedBottom(Drawable icon) |
RCheckHelper |
setIconCheckedLeft(Drawable icon)
*********新版本逻辑*********
|
RCheckHelper |
setIconCheckedRight(Drawable icon) |
RCheckHelper |
setIconCheckedTop(Drawable 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
|
drawIconWithText, getIconDirection, getIconHeight, getIconHeightBottom, getIconHeightLeft, getIconHeightRight, getIconHeightTop, getIconNormal, getIconNormalBottom, getIconNormalLeft, getIconNormalRight, getIconNormalTop, getIconPressed, getIconPressedBottom, getIconPressedLeft, getIconPressedRight, getIconPressedTop, getIconSelected, getIconSelectedBottom, getIconSelectedLeft, getIconSelectedRight, getIconSelectedTop, getIconUnable, getIconUnableBottom, getIconUnableLeft, getIconUnableRight, getIconUnableTop, getIconWidth, getIconWidthBottom, getIconWidthLeft, getIconWidthRight, getIconWidthTop, getTextColorNormal, getTextColorPressed, getTextColorSelected, getTextColorUnable, getTypefacePath, initPressedTextColor, onGlobalLayout, setEnabled, setIcon, setIconBottom, setIconDirection, setIconHeight, setIconLeft, setIconNormal, setIconNormalBottom, setIconNormalLeft, setIconNormalRight, setIconNormalTop, setIconPressed, setIconPressedBottom, setIconPressedLeft, setIconPressedRight, setIconPressedTop, setIconRight, setIconSelected, setIconSelectedBottom, setIconSelectedLeft, setIconSelectedRight, setIconSelectedTop, setIconSize, setIconSizeBottom, setIconSizeLeft, setIconSizeRight, setIconSizeTop, setIconTop, setIconUnable, setIconUnableBottom, setIconUnableLeft, setIconUnableRight, setIconUnableTop, setIconWidth, setSelected, setTextColor, setTextColorPressed, setTextColorSelected, setTextColorUnable, setTypefacedispatchDraw, dp2px, 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, onLayout, 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 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 在类中 RTextViewHelper@Deprecated public RCheckHelper setIconChecked(Drawable icon)
@Deprecated public Drawable getIconChecked()
public RCheckHelper setIconCheckedLeft(Drawable icon)
public RCheckHelper setIconCheckedRight(Drawable icon)
public RCheckHelper setIconCheckedTop(Drawable icon)
public RCheckHelper setIconCheckedBottom(Drawable icon)
public Drawable getIconCheckedLeft()
public Drawable getIconCheckedRight()
public Drawable getIconCheckedTop()
public Drawable getIconCheckedBottom()
public void onTouchEvent(MotionEvent event)
RTextViewHelperonTouchEvent 在接口中 ITextViewFeatureonTouchEvent 在类中 RTextViewHelperpublic void setChecked(boolean checked)
checked - protected boolean isSingleDirection()
RTextViewHelperisSingleDirection 在类中 RTextViewHelper