Package io.rong.imkit.widget

## Class SettingItemView

- All Implemented Interfaces:

      public class SettingItemView

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SettingItemView(Context context)` |
    `SettingItemView(Context context, AttributeSet attrs)` |
    `SettingItemView(Context context, AttributeSet attrs, int defStyleAttr)` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

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

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SettingItemView

          SettingItemView(Context context)

    - #### SettingItemView

          SettingItemView(Context context, AttributeSet attrs)

    - #### SettingItemView

          SettingItemView(Context context, AttributeSet attrs, int defStyleAttr)

  - ### Method Detail

    - #### setRightImageVisibility

           void setRightImageVisibility(int visibility)

      设置右侧图片的隐藏

    - #### setTagImageVisibility

           void setTagImageVisibility(int visibility)

      设置标示图片显示隐藏

    - #### setTagImage

           void setTagImage(int resId)

      设置标示图片

    - #### setSwitchButtonVisibility

           void setSwitchButtonVisibility(int visibility)

      设置switch 按钮显示隐藏

    - #### setSwitchCheckListener

           void setSwitchCheckListener(OnCheckedChangeListener listener)

      设置 switch 按钮选择监听

    - #### setSwitchTouchListener

           void setSwitchTouchListener(OnTouchListener listener)

    - #### setValueVisibility

           void setValueVisibility(int visibility)

      设置 value 值 显示隐藏

    - #### setValue

           void setValue(int resId)

      设置 value 值

    - #### setValue

           void setValue(String value)

      设置 value 值

    - #### getValueView

           TextView getValueView()

      设置 value 颜色

    - #### getValue

           String getValue()

      获取value

    - #### setContent

           void setContent(int resId)

      设置内容

    - #### setContent

           void setContent(String content)

      设置内容

    - #### setImageVisibility

           void setImageVisibility(int visibility)

      设置左侧图片显示隐藏

    - #### setImage

           void setImage(int resId)

      设置左侧图片

    - #### setChecked

           void setChecked(boolean isChecked)

      设置 switch 按钮选择状态

    - #### setCheckedWithOutEvent

           void setCheckedWithOutEvent(boolean isChecked)

      设置 switch 按钮选择状态,不触发选中事件

    - #### setCheckedImmediately

           void setCheckedImmediately(boolean isChecked)

      立即设置 switch 按钮选择状态，没有动画

    - #### setCheckedImmediatelyWithOutEvent

           void setCheckedImmediatelyWithOutEvent(boolean isChecked)

      立即设置 switch 按钮选择状态，没有动画,不触发选中事件

    - #### isChecked

           boolean isChecked()

      获取当前 switch 状态

    - #### setSelected

           void setSelected(boolean selected)

    - #### setSelectImage

           void setSelectImage(Uri uri)

    - #### getSelectImage

           ImageView getSelectImage()