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