public static final class ListTemplate.Builder
extends Object


A builder of ListTemplate.


Public constructors


Returns an empty ListTemplate.Builder instance.

Public methods

ListTemplate.Builder addSectionedList(SectionedItemList list)

Adds an SectionedItemList to display in the template.

ListTemplate build()

Constructs the template defined by this builder.

ListTemplate.Builder setActionStrip(ActionStrip actionStrip)

Sets the ActionStrip for this template or null to not display an ActionStrip.

ListTemplate.Builder setHeaderAction(Action headerAction)

Sets the Action that will be displayed in the header of the template, or null to not display an action.

ListTemplate.Builder setLoading(boolean isLoading)

Sets whether the template is in a loading state.

ListTemplate.Builder setSingleList(ItemList list)

Sets a single ItemList to show in the template.

ListTemplate.Builder setTitle(CharSequence title)

Sets the title of the template.

Inherited methods