public static enum ListView.UpdatePolicy extends java.lang.Enum<ListView.UpdatePolicy>
Enum Constant and Description |
---|
IMMEDIATELY
If list data was was invalidated then views are updated immediately after data invalidation.
|
MANUAL
In manual mode ListView must be rebuild manually by calling
ListView.rebuildView() . |
ON_DRAW
If list data was was invalidated then views are updated before drawing list.
|
Modifier and Type | Method and Description |
---|---|
static ListView.UpdatePolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ListView.UpdatePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ListView.UpdatePolicy ON_DRAW
public static final ListView.UpdatePolicy IMMEDIATELY
public static final ListView.UpdatePolicy MANUAL
ListView.rebuildView()
. Notification from adapter
about need to rebuild view will be ignored (see AbstractListAdapter.itemsChanged()
). This mode should
be only used when it's really required to have manual control over how ListView
rebuilds. Note that
ListView should be rebuild before user interacts with it.public static ListView.UpdatePolicy[] values()
for (ListView.UpdatePolicy c : ListView.UpdatePolicy.values()) System.out.println(c);
public static ListView.UpdatePolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null