# SettingItemView

public class SettingItemView

## Constructors

SettingItemView
Link copied to clipboard
public void SettingItemView(Context context)
public void SettingItemView(Context context, AttributeSet attrs)
public void SettingItemView(Context context, AttributeSet attrs, int defStyleAttr)

## Functions

getSelectImage
Link copied to clipboard
public ImageView getSelectImage()
getValue
Link copied to clipboard
public String getValue()
获取value
getValueView
Link copied to clipboard
public TextView getValueView()
设置 value 颜色
isChecked
Link copied to clipboard
public boolean isChecked()
获取当前 switch 状态
setChecked
Link copied to clipboard
public void setChecked(boolean isChecked)
设置 switch 按钮选择状态
setCheckedImmediately
Link copied to clipboard
public void setCheckedImmediately(boolean isChecked)
立即设置 switch 按钮选择状态，没有动画
setCheckedImmediatelyWithOutEvent
Link copied to clipboard
public void setCheckedImmediatelyWithOutEvent(boolean isChecked)
立即设置 switch 按钮选择状态，没有动画,不触发选中事件
setCheckedWithOutEvent
Link copied to clipboard
public void setCheckedWithOutEvent(boolean isChecked)
设置 switch 按钮选择状态,不触发选中事件
setContent
Link copied to clipboard
public void setContent(int resId)
public void setContent(String content)
设置内容
setImage
Link copied to clipboard
public void setImage(int resId)
设置左侧图片
setImageVisibility
Link copied to clipboard
public void setImageVisibility(int visibility)
设置左侧图片显示隐藏
setRightImageVisibility
Link copied to clipboard
public void setRightImageVisibility(int visibility)
设置右侧图片的隐藏
setSelected
Link copied to clipboard
public void setSelected(boolean selected)
setSelectImage
Link copied to clipboard
public void setSelectImage(Uri uri)
setSwitchButtonVisibility
Link copied to clipboard
public void setSwitchButtonVisibility(int visibility)
设置switch 按钮显示隐藏
setSwitchCheckListener
Link copied to clipboard
public void setSwitchCheckListener(OnCheckedChangeListener listener)
设置 switch 按钮选择监听
setSwitchTouchListener
Link copied to clipboard
public void setSwitchTouchListener(OnTouchListener listener)
setTagImage
Link copied to clipboard
public void setTagImage(int resId)
设置标示图片
setTagImageVisibility
Link copied to clipboard
public void setTagImageVisibility(int visibility)
设置标示图片显示隐藏
setValue
Link copied to clipboard
public void setValue(int resId)
public void setValue(String value)
设置 value 值
setValueVisibility
Link copied to clipboard
public void setValueVisibility(int visibility)
设置 value 值 显示隐藏