Package io.rong.imkit.widget.adapter

## Interface IViewProvider

- All Implemented Interfaces:

      public interface IViewProvider<T>

- - ### Nested Class Summary

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

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract ViewHolder` | `onCreateViewHolder(ViewGroup parent, int viewType)` |
    `abstract boolean` | `isItemViewType(T item)` |
    `abstract void` | `)>bindViewHolder(ViewHolder holder, T t, int position, List<T> list, IViewProviderListener<T> listener)` | 根据数据源绑定视图

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

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

- - ### Constructor Detail

  - ### Method Detail

    - #### onCreateViewHolder

           abstract ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)

    - #### isItemViewType

           abstract boolean isItemViewType(T item)

      Parameters:
        `item` - 数据
      Returns:

        是否是模板类型

    - #### bindViewHolder

           abstract void )>bindViewHolder(ViewHolder holder, T t, int position, List<T> list, IViewProviderListener<T> listener)

      根据数据源绑定视图

      Parameters:
        `holder` - 视图
        `t` - 数据
        `position` - 位置