java.lang.Object | ||
↳ | android.widget.BaseAdapter | |
↳ | com.droidux.pack.gallery.interfaces.GalleryFlowInterfaces.Adapters.AdapterLooper |
![]() |
AdapterLooper is a wrapper adapter to loop/cycle a SpinnerAdapter 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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct an adapter looper object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Download images from URLs.
| |||||||||||
Gets the position of the center item of the looper.
| |||||||||||
How many items are in the data set represented by this Adapter.
| |||||||||||
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 data item associated with the specified position in the data set.
| |||||||||||
Get the row id associated with the specified position in the list.
| |||||||||||
Get the type of View that will be created by getView(int, View, ViewGroup) for the specified item.
| |||||||||||
Get a View that displays the data at the specified position in the data set.
| |||||||||||
Returns the number of types of Views that will be created by getView(int, View, ViewGroup). | |||||||||||
When there's an error when downloading the image or transforming the remote image to a Bitmap, this callback will be called.
| |||||||||||
Callback when the image is successfully downloaded and transformed to a Bitmap.
| |||||||||||
Callback when the image has to be downloaded from the web, or from the cache that will take relatively long time to fetch (e.g.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Construct an adapter looper object.
innerAdapter | The wrapped adapter. |
---|
Download images from URLs.
Use the given GalleryUrlImageAdapter.Request
object to add the image url(s) to the download queue.
The actual download will be done and managed internally by the widgets that support this adapter.
position | The position of the data in the adapter |
---|---|
itemView | The item view for the position. This is the same as returned by the getView(int, android.view.View, android.view.ViewGroup). |
request | Use it to add the image url to the download queue. |
Gets the position of the center item of the looper.
How many items are in the data set represented by this Adapter.
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 data item associated with the specified position in the data set.
position | Position of the item whose data we want within the adapter's data set. |
---|
Get the row id associated with the specified position in the list.
position | The position of the item within the adapter's data set whose row id we want. |
---|
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. |
---|
Get a View that displays the data at the specified position in the data set. You can either create a View manually or inflate it from an XML layout file. When the View is inflated, the parent View (GridView, ListView...) will apply default layout parameters unless you use inflate(int, android.view.ViewGroup, boolean) to specify a root view and to prevent attachment to the root.
position | The position of the item within the adapter's data set of the item whose view we want. |
---|---|
convertView | The old view to reuse, if possible. Note: You should check that this view
is non-null and of an appropriate type before using. If it is not possible to convert
this view to display the correct data, this method can create a new view.
Heterogeneous lists can specify their number of view types, so that this View is
always of the right type (see getViewTypeCount() and
getItemViewType(int) ). |
parent | The parent that this view will eventually be attached to |
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.
When there's an error when downloading the image or transforming the remote image to a Bitmap, this callback will be called.
position | The position of the data in the adapter. |
---|---|
itemView | The item view representing the data in the adapter for the specified position. This is the same view returned by getView(int, android.view.View, android.view.ViewGroup) |
url | The url of the image |
refId | The reference id of the image, as specified when using download(String, int) . Default is 0. |
exception | The exception that occurred when downloading the requested image. |
Callback when the image is successfully downloaded and transformed to a Bitmap.
position | The position of the data in the adapter. |
---|---|
itemView | The item view representing the data in the adapter for the specified position. This is the same view returned by getView(int, android.view.View, android.view.ViewGroup) |
url | The url of the image |
refId | The reference id of the image, as specified when using download(String, int) . Default is 0. |
bitmap | The downloaded image. |
Callback when the image has to be downloaded from the web, or from the cache that will take relatively long time to fetch (e.g. disk cache).
position | The position of the data in the adapter. |
---|---|
itemView | The item view representing the data in the adapter for the specified position. This is the same view returned by getView(int, android.view.View, android.view.ViewGroup) |
imageUrl | The url of the image |
refId | The reference id of the image, as specified when using download(String, int) . Default is 0.
|