public class FullWidthDetailsOverviewSharedElementHelper extends FullWidthDetailsOverviewRowPresenter.Listener
FullWidthDetailsOverviewRowPresenter
. User must call
setSharedElementEnterTransition(Activity, String, long)
during activity onCreate() and
call FullWidthDetailsOverviewRowPresenter.setListener(FullWidthDetailsOverviewRowPresenter.Listener)
.
The helper implements FullWidthDetailsOverviewRowPresenter.Listener
and starts delayed
activity transition once FullWidthDetailsOverviewRowPresenter.Listener#onBindLogo(ViewHolder)
is called.Constructor and Description |
---|
FullWidthDetailsOverviewSharedElementHelper() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAutoStartSharedElementTransition()
Returns true if auto startPostponedEnterTransition() when bound to logo.
|
void |
onBindLogo(FullWidthDetailsOverviewRowPresenter.ViewHolder vh)
|
void |
setAutoStartSharedElementTransition(boolean enabled)
Enable or disable auto startPostponedEnterTransition() when bound to logo.
|
void |
setSharedElementEnterTransition(Activity activity,
String sharedElementName) |
void |
setSharedElementEnterTransition(Activity activity,
String sharedElementName,
long timeoutMs) |
void |
startPostponedEnterTransition()
Manually start postponed enter transition.
|
public FullWidthDetailsOverviewSharedElementHelper()
public void setSharedElementEnterTransition(Activity activity, String sharedElementName)
public void setSharedElementEnterTransition(Activity activity, String sharedElementName, long timeoutMs)
public void setAutoStartSharedElementTransition(boolean enabled)
startPostponedEnterTransition()
to kick off
windowEnterTransition. By default, it is disabled when there is no
windowEnterSharedElementTransition set on the activity.public boolean getAutoStartSharedElementTransition()
startPostponedEnterTransition()
to kick off
windowEnterTransition. By default, it is disabled when there is no
windowEnterSharedElementTransition set on the activity.public void onBindLogo(FullWidthDetailsOverviewRowPresenter.ViewHolder vh)
FullWidthDetailsOverviewRowPresenter.Listener
onBindLogo
in class FullWidthDetailsOverviewRowPresenter.Listener
vh
- The ViewHolder that has bound logo view.public void startPostponedEnterTransition()