What is the difference between ArrayAdapter , BaseAdapter and ListAdapter

后端 未结 2 1145
醉梦人生
醉梦人生 2020-12-08 03:01

Could you please tell me difference between ArrayAdapter , BaseAdapter and ListAdapter.

2条回答
  •  执念已碎
    2020-12-08 03:09

    ListAdapter

    It is an interface that extended Adapter which is the bridge between a ListView and the data that backs the list.

    BaseAdaper

    Common base class of common implementation for an Adapter that can be used in both ListView (by implementing the specialized ListAdapter interface} and Spinner (by implementing the specialized SpinnerAdapter interface.

    ArrayAdapter

    A concrete BaseAdapter that is backed by an array of arbitrary objects.

    Refer below links

    1. ListAdapter

    2. BaseAdapter

    3. ArrayAdapter

提交回复
热议问题