public interface AbstractItemInflater<T extends ColumnItemHolder>
| Modifier and Type | Method and Description |
|---|---|
ContentItem |
getContentItemAt(int position)
Retrieve a specific item at a given position
The implementation must create a ContentItem with at least the usage of ths
ContentItem(int position) constructor
|
android.view.View |
getFooter(android.view.ViewGroup parent)
Create the header view requested by the main component
|
android.view.View |
getHeader(android.view.ViewGroup parent)
Create the header view requested by the main component
|
int |
getItemCount()
The number of items
|
boolean |
hasFooter()
Set the provider with a specific footer in the column
|
boolean |
hasHeader()
Set the provider with a specific header in the column
|
void |
onBindViewHolder(T holder)
Set the data for a displayed / managed holder containing an AbstractItem
Each holder will provide an **AbstractItem** which contains getPosition()
the getPosition() >= 0 will give a value into the provider's list of real items
it is safe to call a get on the provider's internal list of items from this value
for now, returning -1 means that the object was unintialized
|
T |
onCreateViewHolder(android.view.ViewGroup parent)
Called from the array adapter with the ColumnItemHolder to create
|
T onCreateViewHolder(android.view.ViewGroup parent)
parent - the parent viewvoid onBindViewHolder(T holder)
holder - the holder to manageint getItemCount()
ContentItem getContentItemAt(int position)
position - the position greater or equals than 0boolean hasHeader()
android.view.View getHeader(android.view.ViewGroup parent)
parent - a non-null parentboolean hasFooter()
android.view.View getFooter(android.view.ViewGroup parent)
parent - a non-null parent