com.neomades.ui.Adapter |
![]() |
An Adapter
object acts as a bridge between a View
and the underlying data for that view.
The Adapter
provides access to the data items. The
Adapter
is also responsible for making a View
for
each item in the data set.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
areAllItemsEnabled()
Indicates whether all the items in this adapter are enabled.
| ||||||||||
abstract boolean |
isEnabled(int position)
Returns true if the item at the specified position is not a separator.
|
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 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.
position | Index of the item |
---|