Adapter

Interface of android.widget · Adapter.java · Android's reference

public interface Adapter

The items of an adapter view, and the view of each one.

Implemented in the framework by

Fields

public int IGNORE_ITEM_VIEW_TYPE source
public int NO_SELECTION source

Methods

public abstract void registerDataSetObserver(DataSetObserver observer) source
public abstract void unregisterDataSetObserver(DataSetObserver observer) source
public abstract int getCount() source
public abstract Object getItem(int position) source
public abstract long getItemId(int position) source
public abstract boolean hasStableIds() source
public abstract View getView(int position, View convertView, ViewGroup parent) source
public abstract int getItemViewType(int position) source
public abstract int getViewTypeCount() source
public abstract boolean isEmpty() source
public default CharSequence[] getAutofillOptions() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.