public class StandardListItemHolder extends Holder<StandardListItem> implements ViewClickable<StandardListItem>
StandardListItem in the adapter| Modifier and Type | Field and Description |
|---|---|
protected android.widget.TextView |
description |
protected android.widget.ImageView |
image |
protected android.widget.TextView |
title |
| Constructor and Description |
|---|
StandardListItemHolder() |
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
createView(android.view.ViewGroup parent)
Method called when a new view needs to be created in the adapter.
|
void |
onClick(StandardListItem model,
android.view.View view)
Called when the list row is clicked.
|
void |
populateView(StandardListItem model)
Called when the view needs to be populated
|
protected android.widget.ImageView image
protected android.widget.TextView title
protected android.widget.TextView description
public android.view.View createView(android.view.ViewGroup parent)
HoldercreateView in class Holder<StandardListItem>parent - The parent view. Use this with LayoutInflater to inflate your viewpublic void populateView(StandardListItem model)
HolderpopulateView in class Holder<StandardListItem>model - The model to populate the view withpublic void onClick(StandardListItem model, android.view.View view)
ViewClickableonClick in interface ViewClickable<StandardListItem>model - The model of the row in the adapterview - The row of the list that was clicked