public abstract static class UserSwitcherController.BaseUserAdapter extends BaseAdapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
Modifier | Constructor and Description |
---|---|
protected |
BaseUserAdapter(UserSwitcherController controller) |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
How many items are in the data set represented by this Adapter.
|
Drawable |
getDrawable(Context context,
UserSwitcherController.UserRecord item) |
UserSwitcherController.UserRecord |
getItem(int position)
Get the data item associated with the specified position in the data set.
|
long |
getItemId(int position)
Get the row id associated with the specified position in the list.
|
String |
getName(Context context,
UserSwitcherController.UserRecord item) |
void |
refresh() |
void |
switchTo(UserSwitcherController.UserRecord record) |
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver
protected BaseUserAdapter(UserSwitcherController controller)
public int getCount()
Adapter
public UserSwitcherController.UserRecord getItem(int position)
Adapter
position
- Position of the item whose data we want within the adapter's
data set.public long getItemId(int position)
Adapter
position
- The position of the item within the adapter's data set whose row id we want.public void switchTo(UserSwitcherController.UserRecord record)
public String getName(Context context, UserSwitcherController.UserRecord item)
public Drawable getDrawable(Context context, UserSwitcherController.UserRecord item)
public void refresh()