public class AuthenticatedAccountsAdapter extends android.widget.ArrayAdapter<BoxAuthentication.BoxAuthenticationInfo>
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthenticatedAccountsAdapter.DifferentAuthenticationInfo
An empty auth info object to represent the container for logging in with a different account
|
static class |
AuthenticatedAccountsAdapter.ViewHolder
View holder for the account views
|
| Constructor and Description |
|---|
AuthenticatedAccountsAdapter(android.content.Context context,
int resource,
java.util.List<BoxAuthentication.BoxAuthenticationInfo> objects)
Construct an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount() |
BoxAuthentication.BoxAuthenticationInfo |
getItem(int position) |
int |
getItemViewType(int position) |
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
int |
getViewTypeCount() |
add, addAll, addAll, clear, createFromResource, getContext, getDropDownView, getDropDownViewTheme, getFilter, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setDropDownViewTheme, setNotifyOnChange, sortareAllItemsEnabled, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserverpublic AuthenticatedAccountsAdapter(android.content.Context context,
int resource,
java.util.List<BoxAuthentication.BoxAuthenticationInfo> objects)
context - current context.resource - a resource id. (This is not used by this implementation).objects - list of BoxAuthenticationInfo objects to display.public int getViewTypeCount()
getViewTypeCount in interface android.widget.AdaptergetViewTypeCount in class android.widget.BaseAdapterpublic BoxAuthentication.BoxAuthenticationInfo getItem(int position)
getItem in interface android.widget.AdaptergetItem in class android.widget.ArrayAdapter<BoxAuthentication.BoxAuthenticationInfo>public int getItemViewType(int position)
getItemViewType in interface android.widget.AdaptergetItemViewType in class android.widget.BaseAdapterpublic android.view.View getView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
getView in interface android.widget.AdaptergetView in class android.widget.ArrayAdapter<BoxAuthentication.BoxAuthenticationInfo>public int getCount()
getCount in interface android.widget.AdaptergetCount in class android.widget.ArrayAdapter<BoxAuthentication.BoxAuthenticationInfo>