public final class Adapter<T>
extends BaseAdapter
Modifier and Type | Class and Description |
---|---|
static interface |
Adapter.TextDelegate<T> |
static interface |
Adapter.ViewCustomizationDelegate |
Modifier and Type | Method and Description |
---|---|
static <T> Adapter<T> |
forAutoCompleteTextView(Adapter.TextDelegate<T> textDelegate) |
static <T> Adapter<T> |
forSpinner(Adapter.TextDelegate<T> textDelegate) |
int |
getCount() |
View |
getDropDownView(int position,
View convertView,
ViewGroup parent) |
Filter |
getFilter() |
T |
getItem(int position) |
long |
getItemId(int position) |
View |
getView(int position,
View convertView,
ViewGroup parent) |
void |
setItems(java.util.List<T> items) |
void |
setViewCustomizationDelegate(Adapter.ViewCustomizationDelegate viewCustomizationDelegate) |
public static <T> Adapter<T> forSpinner(Adapter.TextDelegate<T> textDelegate)
public static <T> Adapter<T> forAutoCompleteTextView(Adapter.TextDelegate<T> textDelegate)
public int getCount()
public T getItem(int position)
public long getItemId(int position)
public View getView(int position, View convertView, ViewGroup parent)
public View getDropDownView(int position, View convertView, ViewGroup parent)
public Filter getFilter()
public void setItems(java.util.List<T> items)
public void setViewCustomizationDelegate(Adapter.ViewCustomizationDelegate viewCustomizationDelegate)