public interface

ListAdapter

com.neomades.ui.ListAdapter

Class Overview

ListAdapter is a bridge between ListView and data.

See ListView documentation for further information.

See Also

Summary

Public Methods
abstract int getCount()
Returns the number of elements of the ListView to load.
abstract View getView(int atIndex, View itemView, View parent)
Returns or load a view at the specified index.

Public Methods

public abstract int getCount ()

Returns the number of elements of the ListView to load.

Returns
  • the number of items.

public abstract View getView (int atIndex, View itemView, View parent)

Returns or load a view at the specified index. Do not modify other views of the list at the same time since they may not be redrawn. Only the returned View will be drawn at that time.

Parameters
atIndex index of the item
itemView original item or null
parent ListView
Returns
  • the modified view or the created view.