| java.lang.Object | |
| ↳ | android.support.v17.leanback.widget.PresenterSwitcher |
Known Direct Subclasses
|
An abstract helper class that switches a view in its parent view using a
PresenterSelector. A subclass should implement insertView(View) to define
how to add the view in parent, and may optionally override onViewSelected(View).
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Destroys created views.
| |||||||||||
Returns the parent.
| |||||||||||
Initializes the switcher with a parent view to insert view into and a
PresenterSelector for choosing a Presenter for a given object.
| |||||||||||
Selects a view based on the given object and shows that view.
| |||||||||||
Hides the view.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Called when a view is bound to the object of
select(Object).
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Destroys created views.
Initializes the switcher with a parent view to insert view into and a
PresenterSelector for choosing a Presenter for a given object.
This will destroy any existing views.
Hides the view.
Called when a view is bound to the object of select(Object).