Package icyllis.modernui.widget
Interface ListAdapter
- All Superinterfaces:
Adapter
- All Known Subinterfaces:
WrapperListAdapter
- All Known Implementing Classes:
ArrayAdapter
,BaseAdapter
,HeaderViewListAdapter
,MenuAdapter
-
Field Summary
Fields inherited from interface icyllis.modernui.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether all the items in this adapter are enabled.boolean
isEnabled
(int position) Returns true if the item at the specified position is not a separator.Methods inherited from interface icyllis.modernui.widget.Adapter
getCount, getItem, getItemId, getItemViewType, getView, getViewTypeCount, hasStableIds, isEmpty, registerDataSetObserver, unregisterDataSetObserver
-
Method Details
-
areAllItemsEnabled
boolean areAllItemsEnabled()Indicates whether all the items in this adapter are enabled. If the value returned by this method changes over time, there is no guarantee it will take effect. If true, it means all items are selectable and clickable (there is no separator.)- Returns:
- True if all items are enabled, false otherwise.
- See Also:
-
isEnabled
boolean isEnabled(int position) Returns true if the item at the specified position is not a separator. (A separator is a non-selectable, non-clickable item).The result is unspecified if position is invalid. An
ArrayIndexOutOfBoundsException
should be thrown in that case for fast failure.- Parameters:
position
- Index of the item- Returns:
- True if the item is not a separator
- See Also:
-