ArrayAdapter

Class of android.widget · ArrayAdapter.java · Android's reference

public class ArrayAdapter<T> extends BaseAdapter implements Filterable, ThemedSpinnerAdapter

ArrayAdapter ← BaseAdapter

An adapter over a list of objects, each shown as the text of its toString() in a TextView.

Constructors

public ArrayAdapter(Context context, int resource) source
public ArrayAdapter(Context context, int resource, int textViewResourceId) source
public ArrayAdapter(Context context, int resource, T[] objects) source
public ArrayAdapter(Context context, int resource, int textViewResourceId, T[] objects) source
public ArrayAdapter(Context context, int resource, List<T> objects) source
public ArrayAdapter(Context context, int resource, int textViewResourceId, List<T> objects) source

Methods

public void add(T object) source
public void addAll(Collection<? extends T> collection) source
public void addAll(T... items) source
public void insert(T object, int index) source
public void remove(T object) source
public void clear() source
public void sort(Comparator<? super T> comparator) source
public void notifyDataSetChanged() source
public void setNotifyOnChange(boolean notifyOnChange) source
public Context getContext() source
public int getCount() source
public T getItem(int position) source
public int getPosition(T item) source
public long getItemId(int position) source
public View getView(int position, View convertView, ViewGroup parent) source
public void setDropDownViewResource(int resource) source
public void setDropDownViewTheme(Resources.Theme theme) source
public Resources.Theme getDropDownViewTheme() source
public View getDropDownView(int position, View convertView, ViewGroup parent) source
public static ArrayAdapter<CharSequence> createFromResource(Context context, int textArrayResId, int textViewResId) source
public Filter getFilter() source
public 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.