public interface

ColumnWidthAdapter

com.neomades.ui.ColumnWidthAdapter

Class Overview

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.

Summary

Public Methods
abstract int getColumnWidth(int columnIndex, AbsListView parent)
Implement this method to customize the width of each cells in a list.

Public Methods

public abstract int getColumnWidth (int columnIndex, AbsListView parent)

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

Parameters
columnIndex index of the column in the list
parent the HorizontalListView associated with this adapter
Returns
  • the column width in DP unit