public class

DuxListView

extends ListView
implements AbsListView.OnScrollListener
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.AdapterView<T extends android.widget.Adapter>
         ↳ android.widget.AbsListView
           ↳ android.widget.ListView
             ↳ com.droidux.pack.list.widget.DuxListView
Known Direct Subclasses

Class Overview

An extension of ListView with performance optimization and additional features. DuxListView has an internal web image downloader that is designed to work efficiently with adapters implementing the com.droidux.widget.adapters.UrlImageAdapter. DuxListView has also an internal mechanism to work easily and efficiently with adapters implementing the LoadOnDemandAdapter to provide data "on-demand".

Summary

[Expand]
Inherited Constants
From class android.widget.AbsListView
From class android.widget.AdapterView
From class android.view.ViewGroup
From class android.view.View
From interface android.widget.AbsListView.OnScrollListener
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
DuxListView(Context context)
DuxListView(Context context, AttributeSet attrs)
DuxListView(Context context, AttributeSet attrs, int defStyle)
Public Methods
ListUrlImageCache getImageCache()
Gets the cache used to store the web images locally.
void setAdapter(ListAdapter adapter)
Sets the data behind this ListView.
void setImageCache(ListUrlImageCache cache)
Sets the cache used to store the web images locally.
[Expand]
Inherited Methods
From class android.widget.ListView
From class android.widget.AbsListView
From class android.widget.AdapterView
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.text.TextWatcher
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.ViewTreeObserver.OnGlobalLayoutListener
From interface android.view.ViewTreeObserver.OnTouchModeChangeListener
From interface android.view.accessibility.AccessibilityEventSource
From interface android.widget.AbsListView.OnScrollListener
From interface android.widget.Filter.FilterListener

Public Constructors

public DuxListView (Context context)

Since: API Level 2.5

public DuxListView (Context context, AttributeSet attrs)

Since: API Level 2.5

public DuxListView (Context context, AttributeSet attrs, int defStyle)

Since: API Level 2.5

Public Methods

public ListUrlImageCache getImageCache ()

Since: API Level 2.5

Gets the cache used to store the web images locally.

Returns
  • The cache.

public void setAdapter (ListAdapter adapter)

Since: API Level

Sets the data behind this ListView. The adapter passed to this method may be wrapped by a WrapperListAdapter, depending on the ListView features currently in use. For instance, adding headers and/or footers will cause the adapter to be wrapped. When the adapter implements com.droidux.widget.adapters.UrlImageAdapter or LoadOnDemandAdapter, this widget provide enhancements to work efficiently with remote/web images and to provide endless data.

Parameters
adapter The ListAdapter which is responsible for maintaining the data backing this list and for producing a view to represent an item in that data set.

public void setImageCache (ListUrlImageCache cache)

Since: API Level 2.5

Sets the cache used to store the web images locally.

Returns
  • The cache.