接口 WheelViewAdapter

    • 方法详细资料

      • getItemsCount

        int getItemsCount()
        Gets items count
        返回:
        the count of wheel items
      • getItem

        View getItem​(int index,
                     View convertView,
                     ViewGroup parent)
        Get a View that displays the data at the specified position in the data set
        参数:
        index - the item index
        convertView - the old view to reuse if possible
        parent - the parent that this view will eventually be attached to
        返回:
        the wheel item View
      • getEmptyItem

        View getEmptyItem​(View convertView,
                          ViewGroup parent)
        Get a View that displays an empty wheel item placed before the first or after the last wheel item.
        参数:
        convertView - the old view to reuse if possible
        parent - the parent that this view will eventually be attached to
        返回:
        the empty item View
      • registerDataSetObserver

        void registerDataSetObserver​(DataSetObserver observer)
        Register an observer that is called when changes happen to the data used by this adapter.
        参数:
        observer - the observer to be registered
      • unregisterDataSetObserver

        void unregisterDataSetObserver​(DataSetObserver observer)
        Unregister an observer that has previously been registered
        参数:
        observer - the observer to be unregistered