public class BaseModelArrayAdapter<M extends BaseModel>
extends android.widget.ArrayAdapter<M>
| Modifier and Type | Field and Description |
|---|---|
protected int |
mFieldId
If the inflated resource is not a TextView,
mFieldId is used to find
a TextView inside the inflated views hierarchy. |
protected android.view.LayoutInflater |
mInflater |
protected int |
mResource
The resource indicating what views to inflate to display the content of this
array adapter.
|
protected com.google.common.base.Function<M,String> |
toStringFunction
Function to transform object into String
|
| Constructor and Description |
|---|
BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId) |
BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId,
com.google.common.base.Function<M,String> toStringFunction) |
BaseModelArrayAdapter(android.content.Context context,
int resource,
int textViewResourceId) |
BaseModelArrayAdapter(android.content.Context context,
int resource,
int textViewResourceId,
com.google.common.base.Function<M,String> toStringFunction) |
BaseModelArrayAdapter(android.content.Context context,
int resource,
int textViewResourceId,
List<M> objects) |
BaseModelArrayAdapter(android.content.Context context,
int resource,
int textViewResourceId,
List<M> objects,
com.google.common.base.Function<M,String> toStringFunction) |
BaseModelArrayAdapter(android.content.Context context,
int resource,
int textViewResourceId,
M[] objects) |
BaseModelArrayAdapter(android.content.Context context,
int resource,
int textViewResourceId,
M[] objects,
com.google.common.base.Function<M,String> toStringFunction) |
BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId,
List<M> objects) |
BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId,
List<M> objects,
com.google.common.base.Function<M,String> toStringFunction) |
BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId,
M[] objects) |
BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId,
M[] objects,
com.google.common.base.Function<M,String> toStringFunction) |
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
protected void |
init(int resource,
int textViewResourceId,
com.google.common.base.Function<M,String> toStringFunction) |
add, addAll, addAll, clear, createFromResource, getContext, getCount, getDropDownView, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setNotifyOnChange, sortprotected int mResource
protected int mFieldId
mFieldId is used to find
a TextView inside the inflated views hierarchy. This field must contain the
identifier that matches the one defined in the resource file.protected android.view.LayoutInflater mInflater
public BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId,
com.google.common.base.Function<M,String> toStringFunction)
public BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId)
public BaseModelArrayAdapter(android.content.Context context,
int resource,
int textViewResourceId,
com.google.common.base.Function<M,String> toStringFunction)
public BaseModelArrayAdapter(android.content.Context context,
int resource,
int textViewResourceId)
public BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId,
M[] objects,
com.google.common.base.Function<M,String> toStringFunction)
public BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId,
M[] objects)
public BaseModelArrayAdapter(android.content.Context context,
int resource,
int textViewResourceId,
M[] objects,
com.google.common.base.Function<M,String> toStringFunction)
public BaseModelArrayAdapter(android.content.Context context,
int resource,
int textViewResourceId,
M[] objects)
public BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId,
List<M> objects,
com.google.common.base.Function<M,String> toStringFunction)
public BaseModelArrayAdapter(android.content.Context context,
int textViewResourceId,
List<M> objects)
public BaseModelArrayAdapter(android.content.Context context,
int resource,
int textViewResourceId,
List<M> objects,
com.google.common.base.Function<M,String> toStringFunction)
Copyright © 2013–2014 CodeLutin. All rights reserved.