abstract class AbstractMediaListHeaderPresenter : RowPresenter
Abstract presenter class for rendering the header for a list of media items in a playlist. The presenter creates a ViewHolder
for the TextView holding the header text.
Subclasses of this class must override
in order to bind their header text to the media list header view.
AbstractMediaItemPresenter
can be used in conjunction with this presenter in order to display a playlist with a header view.
Summary
Public constructors |
Constructor used for creating an abstract media-list header presenter of a given theme.
|
Constructor used for creating an abstract media-list header presenter.
|
Public methods |
open Boolean |
|
open Unit |
Sets the background color for the row views within the playlist.
|
Inherited functions |
|
From class RowPresenter
Unit |
dispatchItemSelectedListener(vh: RowPresenter.ViewHolder!, selected: Boolean)
This method is only called from onRowViewSelected(ViewHolder, boolean) onRowViewSelected. The default behavior is to signal row selected events with a null item parameter. A Subclass of RowPresenter having child items should override this method and dispatch events with item information.
|
Unit |
freeze(holder: RowPresenter.ViewHolder!, freeze: Boolean)
Freezes/unfreezes the row, typically used when a transition starts/ends. This method is called by the fragment, it should not call it directly by the application.
|
RowHeaderPresenter! |
getHeaderPresenter()
Returns the Presenter used for rendering the header, or null if none has been set.
|
RowPresenter.ViewHolder! |
getRowViewHolder(holder: Presenter.ViewHolder!)
Returns the RowPresenter.ViewHolder from the given RowPresenter ViewHolder.
|
Boolean |
getSelectEffectEnabled()
Returns true if the row selection effect is enabled. This value not only determines whether the default dim implementation is used, but subclasses must also respect this flag.
|
Float |
getSelectLevel(vh: Presenter.ViewHolder!)
Returns the current select level. The value will be between 0 (unselected) and 1 (selected).
|
Int |
getSyncActivatePolicy()
Returns the policy of updating row view activated status. Can be one of:
Default value SYNC_ACTIVATED_TO_EXPANDED
SYNC_ACTIVATED_TO_SELECTED
SYNC_ACTIVATED_TO_EXPANDED_AND_SELECTED
SYNC_ACTIVATED_CUSTOM
|
Unit |
initializeRowViewHolder(vh: RowPresenter.ViewHolder!)
Called after a RowPresenter.ViewHolder is created for a Row. Subclasses may override this method and start by calling super.initializeRowViewHolder(ViewHolder).
|
Boolean |
isClippingChildren()
Returns true if the Row view should clip its children. The clipChildren flag is set on view in initializeRowViewHolder(ViewHolder) . Note that Slide transition or explode transition need turn off clipChildren. Default value is false.
|
Unit |
onBindViewHolder(viewHolder: Presenter.ViewHolder!, item: Any!)
|
Presenter.ViewHolder! |
onCreateViewHolder(parent: ViewGroup!)
|
Unit |
onRowViewAttachedToWindow(vh: RowPresenter.ViewHolder!)
Invoked when the row view is attached to the window.
|
Unit |
onRowViewDetachedFromWindow(vh: RowPresenter.ViewHolder!)
Invoked when the row view is detached from the window.
|
Unit |
onRowViewExpanded(vh: RowPresenter.ViewHolder!, expanded: Boolean)
Called when the row view's expanded state changes. A subclass may override this method to respond to expanded state changes of a Row. The default implementation will hide/show the header view. Subclasses may make visual changes to the Row View but must not create animation on the Row view.
|
Unit |
onRowViewSelected(vh: RowPresenter.ViewHolder!, selected: Boolean)
Called when the given row view changes selection state. A subclass may override this to respond to selected state changes of a Row. A subclass may make visual changes to Row view but must not create animation on the Row view.
|
Unit |
onSelectLevelChanged(vh: RowPresenter.ViewHolder!)
Callback when the select level changes. The default implementation applies the select level to RowHeaderPresenter#setSelectLevel(RowHeaderP | |