Package io.rong.imkit.usermanage.component

## Class HeadComponent

- All Implemented Interfaces:

      public class HeadComponent

  功能描述:

  Since:

    5.10.4

  Author:

    haogaohui

- - ### Nested Class Summary

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

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public TextView` | `leftTextView` |
    `public TextView` | `titleTextView` |
    `public TextView` | `rightTextView` |

  - ### Constructor Summary

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

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `TextView` | `getLeftTextView()` | 获取左边文字
    `TextView` | `getTitleTextView()` | 获取标题
    `TextView` | `getRightTextView()` | 获取右边文字
    `void` | `setTitleText(String title)` | 设置标题
    `void` | `setTitleText(int id)` |
    `void` | `setLeftText(String text)` | 设置左边文字
    `void` | `setRightText(String text)` | 设置右边文字
    `void` | `setLeftTextDrawable(int resId)` | 设置左边文字图标
    `void` | `setTitleTextDrawable(int resId)` | 设置标题文字图标
    `void` | `setRightTextDrawable(int resId)` | 设置右边文字图标
    `void` | `setRightTextViewEnable(boolean enable)` | 设置右边文字是否可用
    `void` | `addRightView(View view)` | 添加右边视图
    `void` | `setLeftClickListener(OnClickListener listener)` | 设置左边点击事件
    `void` | `setTitleClickListener(OnClickListener listener)` | 设置标题点击事件
    `void` | `setRightClickListener(OnClickListener listener)` | 设置右边点击事件

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

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

- - ### Constructor Detail

    - #### HeadComponent

          HeadComponent(Context context)

    - #### HeadComponent

          HeadComponent(Context context, AttributeSet attrs)

    - #### HeadComponent

          HeadComponent(Context context, AttributeSet attrs, int defStyleAttr)

  - ### Method Detail

    - #### getLeftTextView

           TextView getLeftTextView()

      获取左边文字

      Returns:

        左边文字

    - #### getTitleTextView

           TextView getTitleTextView()

      获取标题

      Returns:

        标题

    - #### getRightTextView

           TextView getRightTextView()

      获取右边文字

      Returns:

        右边文字

    - #### setTitleText

           void setTitleText(String title)

      设置标题

      Parameters:
        `title` - 标题

    - #### setTitleText

           void setTitleText(int id)

    - #### setLeftText

           void setLeftText(String text)

      设置左边文字

      Parameters:
        `text` - 文字

    - #### setRightText

           void setRightText(String text)

      设置右边文字

      Parameters:
        `text` - 文字

    - #### setLeftTextDrawable

           void setLeftTextDrawable(int resId)

      设置左边文字图标

      Parameters:
        `resId` - 图标资源id

    - #### setTitleTextDrawable

           void setTitleTextDrawable(int resId)

      设置标题文字图标

      Parameters:
        `resId` - 图标资源id

    - #### setRightTextDrawable

           void setRightTextDrawable(int resId)

      设置右边文字图标

      Parameters:
        `resId` - 图标资源id

    - #### setRightTextViewEnable

           void setRightTextViewEnable(boolean enable)

      设置右边文字是否可用

      Parameters:
        `enable` - 是否可用

    - #### addRightView

           void addRightView(View view)

      添加右边视图

      Parameters:
        `view` - 视图

    - #### setLeftClickListener

           void setLeftClickListener(OnClickListener listener)

      设置左边点击事件

      Parameters:
        `listener` - 点击事件

    - #### setTitleClickListener

           void setTitleClickListener(OnClickListener listener)

      设置标题点击事件

      Parameters:
        `listener` - 点击事件

    - #### setRightClickListener

           void setRightClickListener(OnClickListener listener)

      设置右边点击事件

      Parameters:
        `listener` - 点击事件