@Deprecated public class DetailsOverviewRowPresenter extends RowPresenter
DetailsOverviewRow
to display an overview of an item.
Typically this row will be the first row in a fragment
such as the DetailsFragment
. The View created by the DetailsOverviewRowPresenter is made in three parts:
ImageView on the left, action list view on the bottom and a customizable detailed
description view on the right.
The detailed description is rendered using a Presenter
passed in
DetailsOverviewRowPresenter(Presenter)
. Typically this will be an instance of
AbstractDetailsDescriptionPresenter
. The application can access the
detailed description ViewHolder from DetailsOverviewRowPresenter.ViewHolder.mDetailsDescriptionViewHolder
.
To participate in activity transition, call setSharedElementEnterTransition(Activity,
String)
during Activity's onCreate().
Because transition support and layout are fully controlled by DetailsOverviewRowPresenter, developer can not override DetailsOverviewRowPresenter.ViewHolder for adding/replacing views of DetailsOverviewRowPresenter. If further customization is required beyond replacing the detailed description, the application should create a new row presenter class.
Modifier and Type | Class and Description |
---|---|
class |
DetailsOverviewRowPresenter.ViewHolder
Deprecated.
A ViewHolder for the DetailsOverviewRow.
|
Presenter.ViewHolderTask
SYNC_ACTIVATED_CUSTOM, SYNC_ACTIVATED_TO_EXPANDED, SYNC_ACTIVATED_TO_EXPANDED_AND_SELECTED, SYNC_ACTIVATED_TO_SELECTED
Constructor and Description |
---|
DetailsOverviewRowPresenter(Presenter detailsPresenter)
Deprecated.
Constructor for a DetailsOverviewRowPresenter.
|
Modifier and Type | Method and Description |
---|---|
protected RowPresenter.ViewHolder |
createRowViewHolder(ViewGroup parent)
Deprecated.
Called to create a ViewHolder object for a Row.
|
int |
getBackgroundColor()
Deprecated.
Returns the background color.
|
OnActionClickedListener |
getOnActionClickedListener()
Deprecated.
Returns the listener for Action click events.
|
boolean |
isStyleLarge()
Deprecated.
Returns true if the layout style is large.
|
boolean |
isUsingDefaultSelectEffect()
Deprecated.
Returns true if this RowPresenter is using the default dimming effect.
|
protected void |
onBindRowViewHolder(RowPresenter.ViewHolder holder,
Object item)
Deprecated.
Binds the given row object to the given ViewHolder.
|
protected void |
onRowViewAttachedToWindow(RowPresenter.ViewHolder vh)
Deprecated.
Invoked when the row view is attached to the window.
|
protected void |
onRowViewDetachedFromWindow(RowPresenter.ViewHolder vh)
Deprecated.
Invoked when the row view is detached from the window.
|
protected void |
onRowViewSelected(RowPresenter.ViewHolder vh,
boolean selected)
Deprecated.
Called when the given row view changes selection state.
|
protected void |
onSelectLevelChanged(RowPresenter.ViewHolder holder)
Deprecated.
Callback when the select level changes.
|
protected void |
onUnbindRowViewHolder(RowPresenter.ViewHolder holder)
Deprecated.
Unbinds the given ViewHolder.
|
void |
setBackgroundColor(int color)
Deprecated.
Sets the background color.
|
void |
setOnActionClickedListener(OnActionClickedListener listener)
Deprecated.
Sets the listener for Action click events.
|
void |
setSharedElementEnterTransition(Activity activity,
String sharedElementName)
Deprecated.
Sets the enter transition of target activity to be
transiting into overview row created by this presenter.
|
void |
setSharedElementEnterTransition(Activity activity,
String sharedElementName,
long timeoutMs)
Deprecated.
Sets the enter transition of target activity to be
transiting into overview row created by this presenter.
|
void |
setStyleLarge(boolean large)
Deprecated.
Sets the layout style to be large or small.
|
dispatchItemSelectedListener, freeze, getHeaderPresenter, getRowViewHolder, getSelectEffectEnabled, getSelectLevel, getSyncActivatePolicy, initializeRowViewHolder, isClippingChildren, onBindViewHolder, onCreateViewHolder, onRowViewExpanded, onUnbindViewHolder, onViewAttachedToWindow, onViewDetachedFromWindow, setEntranceTransitionState, setHeaderPresenter, setRowViewExpanded, setRowViewSelected, setSelectEffectEnabled, setSelectLevel, setSyncActivatePolicy
cancelAnimationsRecursive, getFacet, setFacet, setOnClickListener
public void setOnActionClickedListener(OnActionClickedListener listener)
public OnActionClickedListener getOnActionClickedListener()
public void setBackgroundColor(int color)
public int getBackgroundColor()
public void setStyleLarge(boolean large)
public boolean isStyleLarge()
public final void setSharedElementEnterTransition(Activity activity, String sharedElementName, long timeoutMs)
It assumes shared element passed from calling activity is an ImageView; the shared element transits to overview image on the starting edge of the detail overview row, while bounds of overview row grows and reveals text and action buttons.
The method must be invoked in target Activity's onCreate().
public final void setSharedElementEnterTransition(Activity activity, String sharedElementName)
It assumes shared element passed from calling activity is an ImageView; the shared element transits to overview image on the starting edge of the detail overview row, while bounds of overview row grows and reveals text and action buttons.
The method must be invoked in target Activity's onCreate().
protected void onRowViewSelected(RowPresenter.ViewHolder vh, boolean selected)
RowPresenter
onRowViewSelected
in class RowPresenter
protected RowPresenter.ViewHolder createRowViewHolder(ViewGroup parent)
RowPresenter
createRowViewHolder
in class RowPresenter
parent
- The parent View for the Row's view holder.protected void onBindRowViewHolder(RowPresenter.ViewHolder holder, Object item)
RowPresenter
RowPresenter
overriding
RowPresenter.onBindRowViewHolder(ViewHolder, Object)
must call through the super class's
implementation of this method.onBindRowViewHolder
in class RowPresenter
protected void onUnbindRowViewHolder(RowPresenter.ViewHolder holder)
RowPresenter
RowPresenter
overriding RowPresenter.onUnbindRowViewHolder(ViewHolder)
must call through the super class's implementation of this method.onUnbindRowViewHolder
in class RowPresenter
public final boolean isUsingDefaultSelectEffect()
RowPresenter
RowPresenter.onSelectLevelChanged(ViewHolder)
.isUsingDefaultSelectEffect
in class RowPresenter
protected void onSelectLevelChanged(RowPresenter.ViewHolder holder)
RowPresenter
RowHeaderPresenter.setSelectLevel(RowHeaderPresenter.ViewHolder, float)
when RowPresenter.getSelectEffectEnabled()
is true. Subclasses may override
this function and implement a different select effect. In this case,
the method RowPresenter.isUsingDefaultSelectEffect()
should also be overridden to disable
the default dimming effect.onSelectLevelChanged
in class RowPresenter
protected void onRowViewAttachedToWindow(RowPresenter.ViewHolder vh)
RowPresenter
onRowViewAttachedToWindow
in class RowPresenter
protected void onRowViewDetachedFromWindow(RowPresenter.ViewHolder vh)
RowPresenter
onRowViewDetachedFromWindow
in class RowPresenter