public class CheckableListItemHolder extends Holder<CheckableListItem> implements ViewClickable<CheckableListItem>
CheckableListItem in the adapter| Modifier and Type | Field and Description |
|---|---|
protected android.widget.CheckBox |
checkBox |
protected android.widget.TextView |
title |
| Constructor and Description |
|---|
CheckableListItemHolder() |
| 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(CheckableListItem model,
android.view.View view)
Called when the list row is clicked.
|
void |
populateView(CheckableListItem model)
Called when the view needs to be populated
|
protected android.widget.TextView title
protected android.widget.CheckBox checkBox
public android.view.View createView(android.view.ViewGroup parent)
HoldercreateView in class Holder<CheckableListItem>parent - The parent view. Use this with LayoutInflater to inflate your viewpublic void populateView(CheckableListItem model)
HolderpopulateView in class Holder<CheckableListItem>model - The model to populate the view withpublic void onClick(CheckableListItem model, android.view.View view)
ViewClickableonClick in interface ViewClickable<CheckableListItem>model - The model of the row in the adapterview - The row of the list that was clicked