public class ArrayAdapter<T> extends BaseAdapter implements Filterable
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION| Constructor and Description |
|---|
ArrayAdapter(Context context,
int textViewResourceId) |
ArrayAdapter(Context context,
int resource,
int textViewResourceId) |
ArrayAdapter(Context context,
int resource,
int textViewResourceId,
List<T> objects) |
ArrayAdapter(Context context,
int resource,
int textViewResourceId,
T[] objects) |
ArrayAdapter(Context context,
int textViewResourceId,
List<T> objects) |
ArrayAdapter(Context context,
int textViewResourceId,
T[] objects) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T object) |
void |
addAll(Collection<? extends T> collection) |
void |
addAll(T... items) |
void |
clear() |
static ArrayAdapter<CharSequence> |
createFromResource(Context context,
int textArrayResId,
int textViewResId) |
Context |
getContext() |
int |
getCount() |
View |
getDropDownView(int position,
View convertView,
ViewGroup parent) |
Filter |
getFilter() |
T |
getItem(int position) |
long |
getItemId(int position) |
int |
getPosition(T item) |
View |
getView(int position,
View convertView,
ViewGroup parent) |
void |
insert(T object,
int index) |
void |
notifyDataSetChanged() |
void |
remove(T object) |
void |
setDropDownViewResource(int resource) |
void |
setNotifyOnChange(boolean notifyOnChange) |
void |
sort(Comparator<? super T> comparator) |
areAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserverpublic ArrayAdapter(Context context, int textViewResourceId)
public ArrayAdapter(Context context, int resource, int textViewResourceId)
public ArrayAdapter(Context context, int resource, int textViewResourceId, T[] objects)
public void add(T object)
public void addAll(Collection<? extends T> collection)
public void addAll(T... items)
public void insert(T object, int index)
public void remove(T object)
public void clear()
public void sort(Comparator<? super T> comparator)
public void notifyDataSetChanged()
notifyDataSetChanged in class BaseAdapterpublic void setNotifyOnChange(boolean notifyOnChange)
public Context getContext()
public int getPosition(T item)
public void setDropDownViewResource(int resource)
public View getDropDownView(int position, View convertView, ViewGroup parent)
getDropDownView in interface SpinnerAdaptergetDropDownView in class BaseAdapterpublic static ArrayAdapter<CharSequence> createFromResource(Context context, int textArrayResId, int textViewResId)
public Filter getFilter()
getFilter in interface FilterableCopyright © 2008-2013. All Rights Reserved.