|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.widget.BaseAdapter
sk.baka.ambient.views.gesturelist.MutableListAdapter
public final class MutableListAdapter
An adapter backed by a list. Unlike ArrayAdapter this adapter
supports the list redraw operation - you don't need to set new adapter
instance to the ListView when the items are changed.
| Field Summary | |
|---|---|
static Object |
EOP_MODEL_MARKER
Marks the EOP item in the model. |
protected LayoutInflater |
inflater
The inflater used to inflate new views. |
static int |
ZOOMED_HEIGHT
Height of zoomed views, in pixels. |
| Fields inherited from interface android.widget.Adapter |
|---|
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION |
| Constructor Summary | |
|---|---|
MutableListAdapter(GesturesListView owner,
ModelHolder model)
Creates new adapter. |
|
| Method Summary | |
|---|---|
void |
eopModified()
The EOP state should be modified. |
int |
getCount()
|
Object |
getItem(int position)
|
long |
getItemId(int position)
|
View |
getView(int arg0,
View arg1,
ViewGroup arg2)
|
boolean |
isEOP(int position)
Checks if given item is the EOP item. |
void |
notifyModified()
Redraws items and reflects changes made to the ModelHolder.getModel() list. |
void |
setEOP(boolean visible)
The EOP state should be modified. |
void |
zoom(boolean zoom)
Zooms or un-zooms the items. |
| Methods inherited from class android.widget.BaseAdapter |
|---|
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final LayoutInflater inflater
public static final int ZOOMED_HEIGHT
public static final Object EOP_MODEL_MARKER
| Constructor Detail |
|---|
public MutableListAdapter(GesturesListView owner,
ModelHolder model)
owner - owning list viewmodel - the model| Method Detail |
|---|
public final View getView(int arg0,
View arg1,
ViewGroup arg2)
public int getCount()
public boolean isEOP(int position)
position - the position
true if it is EOP, false otherwise.public Object getItem(int position)
public long getItemId(int position)
public void eopModified()
public void setEOP(boolean visible)
visible - if true then show EOP, if false then
hide it.public void notifyModified()
ModelHolder.getModel() list.
public void zoom(boolean zoom)
zoom - true if zoom the view.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||