Package io.rong.imkit.feature.customservice

## Class SingleChoiceAdapter

- All Implemented Interfaces:

      public class SingleChoiceAdapter<T>

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public class` | `SingleChoiceAdapter.ViewHolder` |

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SingleChoiceAdapter(Context context, int checkBoxResourceId)` |
    `SingleChoiceAdapter(Context context, List<T> objects, int checkBoxResourceId)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `refreshData(List<T> objects)` |
    `void` | `setSelectItem(int selectItem)` |
    `int` | `getSelectItem()` |
    `void` | `clear()` |
    `int` | `getCount()` |
    `T` | `getItem(int position)` |
    `int` | `getPosition(T item)` |
    `long` | `getItemId(int position)` |
    `View` | `getView(int position, View convertView, ViewGroup parent)` |

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

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

- - ### Constructor Detail

    - #### SingleChoiceAdapter

          SingleChoiceAdapter(Context context, int checkBoxResourceId)

    - #### SingleChoiceAdapter

          SingleChoiceAdapter(Context context, List<T> objects, int checkBoxResourceId)

  - ### Method Detail

    - #### refreshData

           void refreshData(List<T> objects)

    - #### setSelectItem

           void setSelectItem(int selectItem)

    - #### getSelectItem

           int getSelectItem()

    - #### clear

           void clear()

    - #### getCount

           int getCount()

    - #### getItem

           T getItem(int position)

    - #### getPosition

           int getPosition(T item)

    - #### getItemId

           long getItemId(int position)

    - #### getView

           View getView(int position, View convertView, ViewGroup parent)