com.neomades.ui.RowHeightAdapter |
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract int |
getRowHeight(int rowIndex, AbsListView parent)
Implement this method to customize the height of each cells in a list.
|
Implement this method to customize the height of each cells in a list. This method is really efficient if the items have different size.
rowIndex | index of the row in the list |
---|---|
parent | the ListView associated with this adapter |