public abstract class BaseListViewAdapter<T>
extends android.widget.BaseAdapter
Constructor and Description |
---|
BaseListViewAdapter() |
BaseListViewAdapter(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
add(T t) |
void |
add(T t,
int position) |
void |
addCollection(java.util.Collection<T> collection) |
void |
addCollection(T... collection) |
protected abstract void |
bindView(android.view.View v,
int position,
T data) |
void |
clear() |
int |
findPosition(long id) |
int |
findPosition(T message) |
protected <T extends android.view.View> |
findViewById(android.view.View view,
int id) |
int |
getCount() |
T |
getItem(int position) |
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
protected abstract android.view.View |
newView(android.content.Context context,
int position,
android.view.ViewGroup group) |
void |
remove(int position) |
void |
removeAll() |
areAllItemsEnabled, getAutofillOptions, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserver
protected java.util.List<T> mList
public BaseListViewAdapter()
public BaseListViewAdapter(android.content.Context context)
protected <T extends android.view.View> T findViewById(android.view.View view, int id)
public int findPosition(T message)
public int findPosition(long id)
public void addCollection(java.util.Collection<T> collection)
@SafeVarargs public final void addCollection(T... collection)
public void add(T t)
public void add(T t, int position)
public void remove(int position)
public void removeAll()
public void clear()
public int getCount()
public T getItem(int position)
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)
protected abstract android.view.View newView(android.content.Context context, int position, android.view.ViewGroup group)
protected abstract void bindView(android.view.View v, int position, T data)