Package io.rong.imkit.widget

## Class TitleBar

- All Implemented Interfaces:

      public class TitleBar

  头部Toolbar封装 Created by lhz on 18/3/22.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public interface` | `TitleBar.OnBackClickListener` |
    `public interface` | `TitleBar.OnRightIconClickListener` |

  - ### Field Summary

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

  - ### Constructor Summary

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

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `setOnBackClickListener(TitleBar.OnBackClickListener l)` |
    `void` | `setOnRightIconClickListener(TitleBar.OnRightIconClickListener l)` |
    `void` | `setRightTextColor(int color)` |
    `TextView` | `getLeftView()` |
    `void` | `setRightVisible(boolean visible)` |
    `TextView` | `getMiddleView()` |
    `ImageView` | `getMiddleLeftIcon()` |
    `ImageView` | `getMiddleRightIcon()` |
    `TextView` | `getTypingView()` |
    `void` | `setTyping(int typing)` |
    `TextView` | `getRightView()` |
    `void` | `setRightText(CharSequence charSequence)` |
    `void` | `setLeftText(CharSequence charSequence)` |
    `void` | `setTitle(String title)` |
    `void` | `setTitle(int resId)` |
    `void` | `dismissBackIcon()` |
    `void` | `setRightIconDrawableVisibility(boolean visible)` |
    `void` | `setRightIcon(int res)` |
    `ImageView` | `getSearchView()` |
    `void` | `setSearchViewVisibility(boolean visibility)` |

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

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

- - ### Constructor Detail

    - #### TitleBar

          TitleBar(Context context)

    - #### TitleBar

          TitleBar(Context context, AttributeSet attrs)

    - #### TitleBar

          TitleBar(Context context, AttributeSet attrs, int defStyleAttr)

  - ### Method Detail

    - #### setOnBackClickListener

           void setOnBackClickListener(TitleBar.OnBackClickListener l)

    - #### setOnRightIconClickListener

           void setOnRightIconClickListener(TitleBar.OnRightIconClickListener l)

    - #### setRightTextColor

           void setRightTextColor(int color)

    - #### getLeftView

           TextView getLeftView()

    - #### setRightVisible

           void setRightVisible(boolean visible)

    - #### getMiddleView

           TextView getMiddleView()

    - #### getMiddleLeftIcon

           ImageView getMiddleLeftIcon()

    - #### getMiddleRightIcon

           ImageView getMiddleRightIcon()

    - #### getTypingView

           TextView getTypingView()

    - #### setTyping

           void setTyping(int typing)

    - #### getRightView

           TextView getRightView()

    - #### setRightText

           void setRightText(CharSequence charSequence)

    - #### setLeftText

           void setLeftText(CharSequence charSequence)

    - #### setTitle

           void setTitle(String title)

    - #### setTitle

           void setTitle(int resId)

    - #### dismissBackIcon

           void dismissBackIcon()

    - #### setRightIconDrawableVisibility

           void setRightIconDrawableVisibility(boolean visible)

    - #### setRightIcon

           void setRightIcon(int res)

    - #### getSearchView

           ImageView getSearchView()

    - #### setSearchViewVisibility

           void setSearchViewVisibility(boolean visibility)