| com.neomades.ui.ColumnWidthAdapter |
Adapter used by HorizontalListView to determine column width.
By setting a ColumnWidthAdapter to a HorizontalListView by using
setColumnWidthAdapter(ColumnWidthAdapter), the
HorizontalListView will use the result of
getColumnWidth(int, AbsListView) to calculate the width of each
items. Each cell can have a different width.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract int |
getColumnWidth(int columnIndex, AbsListView parent)
Implement this method to customize the width of each cells in a list.
| ||||||||||
Implement this method to customize the width of each cells in a list. This method is really efficient if the items have different size.
| columnIndex | index of the column in the list |
|---|---|
| parent | the HorizontalListView associated with this adapter |