java.lang.Object | ||
↳ | android.widget.BaseAdapter | |
↳ | com.droidux.ui.widgets.gallery.adapter.AdapterLooper |
AdapterLooper wraps SpinnerAdapter adapter to loop/cycle it so that
they appear to be an endless loop.
It's not really endless, but the views will be cycled up to MAX_VALUE
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.widget.Adapter
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct an adapter looper object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the position of the center item of the looper.
| |||||||||||
Gets the wrapped adapter that is cycled by this looper.
| |||||||||||
Gets the number of items in the wrapped adapter.
| |||||||||||
Gets the actual position of an item in the wrapped adapter based on its position in the looper.
| |||||||||||
Get the type of View that will be created by getView(int, View, ViewGroup) for the specified item.
| |||||||||||
Returns the number of types of Views that will be created by getView(int, View, ViewGroup). | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.widget.BaseAdapter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.widget.Adapter
| |||||||||||
From interface
android.widget.ListAdapter
| |||||||||||
From interface
android.widget.SpinnerAdapter
|
Construct an adapter looper object.
innerAdapter | The wrapped adapter. |
---|
Gets the position of the center item of the looper.
Gets the wrapped adapter that is cycled by this looper.
Gets the number of items in the wrapped adapter.
Gets the actual position of an item in the wrapped adapter based on its position in the looper.
position | The item's position in the looper. |
---|
Get the type of View that will be created by getView(int, View, ViewGroup) for the specified item.
position | The position of the item within the adapter's data set whose view type we want. |
---|
Returns the number of types of Views that will be created by getView(int, View, ViewGroup). Each type represents a set of views that can be converted in getView(int, View, ViewGroup). If the adapter always returns the same type of View for all items, this method should return 1.
This method will only be called when when the adapter is set on the the AdapterView.