public interface

RowHeightAdapter

com.neomades.ui.RowHeightAdapter

Class Overview

Adapter used by ListView to determine row height.

By setting a RowHeightAdapter to a ListView by using setRowHeightAdapter(RowHeightAdapter), the ListView will use the result of getRowHeight(int, AbsListView) to calculate the height of each items. Each cell can have a different height.

See Also

Summary

Public Methods
abstract int getRowHeight(int rowIndex, AbsListView parent)
Implement this method to customize the height of each cells in a list.

Public Methods

public abstract int getRowHeight (int rowIndex, AbsListView parent)

Implement this method to customize the height of each cells in a list. This method is really efficient if the items have different size.

Parameters
rowIndex index of the row in the list
parent the ListView associated with this adapter
Returns
  • the row height in DP unit