Package io.rong.imkit.conversationlist

## Class ConversationListFragment

- All Implemented Interfaces:

      public class ConversationListFragment

- - ### Nested Class Summary

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

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ConversationListFragment()` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `onCreate(Bundle savedInstanceState)` |
    `View` | `onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)` |
    `void` | `onViewCreated(View view, Bundle savedInstanceState)` |
    `void` | `onResume()` |
    `void` | `onItemClick(View view, ViewHolder holder, int position)` | 会话列表点击事件回调
    `boolean` | `onItemLongClick(View view, ViewHolder holder, int position)` | 会话列表长按事件回调
    `void` | `addHeaderView(View view)` |
    `void` | `addFooterView(View view)` |
    `void` | `setEmptyView(View view)` |
    `void` | `setEmptyView(int emptyId)` |

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

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

- - ### Constructor Detail

    - #### ConversationListFragment

          ConversationListFragment()

  - ### Method Detail

    - #### onCreate

           void onCreate(Bundle savedInstanceState)

    - #### onCreateView

           View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

    - #### onViewCreated

           void onViewCreated(View view, Bundle savedInstanceState)

    - #### onResume

           void onResume()

    - #### onItemClick

           void onItemClick(View view, ViewHolder holder, int position)

      会话列表点击事件回调

      Parameters:
        `view` - 点击 view
        `holder` - ViewHolder
        `position` - 点击位置

    - #### onItemLongClick

           boolean onItemLongClick(View view, ViewHolder holder, int position)

      会话列表长按事件回调

      Parameters:
        `view` - 点击 view
        `holder` - ViewHolder
        `position` - 点击位置
      Returns:

        事件是否被消费

    - #### addHeaderView

           void addHeaderView(View view)

      Parameters:
        `view` - 自定义列表 header view

    - #### addFooterView

           void addFooterView(View view)

      Parameters:
        `view` - 自定义列表 footer view

    - #### setEmptyView

           void setEmptyView(View view)

      Parameters:
        `view` - 自定义列表 空数据 view

    - #### setEmptyView

           void setEmptyView(int emptyId)

      Parameters:
        `emptyId` - 自定义列表 空数据的 LayoutId