java.lang.Object | |
↳ | greendroid.widget.SegmentedAdapter |
A SegmentedAdapter is a data source of a SegmentedHost/SegmentedHost.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
How many segments have to be displayed
| |||||||||||
Get the title for the segment at position position
| |||||||||||
Get the View associated to the segment at position position
| |||||||||||
Notifies the attached View that the underlying data has changed and
should refresh itself.
| |||||||||||
Register an observer that is called when changes happen to the data used
by this adapter.
| |||||||||||
Unregister an observer that has previously been registered with this
adapter via
unregisterDataSetObserver(DataSetObserver) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
How many segments have to be displayed
Get the title for the segment at position position
position | The position of the segment in the SegmentedBar |
---|
Get the View associated to the segment at position position
position | The position of the item in the SegmentedAdapter |
---|---|
parent | The parent that this view will eventually be attached to |
Notifies the attached View that the underlying data has changed and should refresh itself.
Register an observer that is called when changes happen to the data used by this adapter.
observer | The object that gets notified when the data set changes. |
---|
Unregister an observer that has previously been registered with this
adapter via unregisterDataSetObserver(DataSetObserver)
observer | The object to unregister |
---|