RowPresenter.ViewHolder! |
createRowViewHolder(parent: ViewGroup!)
Called to create a ViewHolder object for a Row. Subclasses will override this method to return a different concrete ViewHolder object.
|
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.
|
Boolean |
isUsingDefaultSelectEffect()
Returns true if this RowPresenter is using the default dimming effect. A subclass may (most likely) return false and override onSelectLevelChanged(ViewHolder) .
|
Unit |
onBindRowViewHolder(vh: RowPresenter.ViewHolder!, item: Any!)
Binds the given row object to the given ViewHolder. Derived classes of RowPresenter overriding onBindRowViewHolder(ViewHolder, Object) must call through the super class's implementation of this method.
|
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 |