Most visited

Recently visited

FullWidthDetailsOverviewSharedElementHelper

public class FullWidthDetailsOverviewSharedElementHelper
extends FullWidthDetailsOverviewRowPresenter.Listener

java.lang.Object
   ↳ android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter.Listener
     ↳ android.support.v17.leanback.widget.FullWidthDetailsOverviewSharedElementHelper


助手类可帮助延迟共享元素活动转换,以创建FullWidthDetailsOverviewRowPresenter视图。 用户在活动onCreate()期间必须调用setSharedElementEnterTransition(Activity, String, long) ,并调用setListener(FullWidthDetailsOverviewRowPresenter.Listener) 助手执行FullWidthDetailsOverviewRowPresenter.Listener并启动一次onBindLogo(ViewHolder)被调用的延迟活动转换。

Summary

Public constructors

FullWidthDetailsOverviewSharedElementHelper()

Public methods

boolean getAutoStartSharedElementTransition()

如果自动startPostponedEnterTransition()绑定到徽标时返回true。

void onBindLogo(FullWidthDetailsOverviewRowPresenter.ViewHolder vh)

notifyOnBindLogo(ViewHolder)被调用。

void setAutoStartSharedElementTransition(boolean enabled)

绑定到徽标时启用或禁用自动startPostponedEnterTransition()。

void setSharedElementEnterTransition(Activity activity, String sharedElementName)
void setSharedElementEnterTransition(Activity activity, String sharedElementName, long timeoutMs)
void startPostponedEnterTransition()

手动启动推迟输入转换。

Inherited methods

From class android.support.v17.leanback.widget.FullWidthDetailsOverviewRowPresenter.Listener
From class java.lang.Object

Public constructors

FullWidthDetailsOverviewSharedElementHelper

FullWidthDetailsOverviewSharedElementHelper ()

Public methods

getAutoStartSharedElementTransition

boolean getAutoStartSharedElementTransition ()

如果自动startPostponedEnterTransition()绑定到徽标时返回true。 当它被禁用时,应用程序必须调用startPostponedEnterTransition()才能启动windowEnterTransition。 默认情况下,当活动上没有设置windowEnterSharedElementTransition时,它将被禁用。

Returns
boolean

onBindLogo

void onBindLogo (FullWidthDetailsOverviewRowPresenter.ViewHolder vh)

notifyOnBindLogo(ViewHolder)被调用。

Parameters
vh FullWidthDetailsOverviewRowPresenter.ViewHolder: The ViewHolder that has bound logo view.

setAutoStartSharedElementTransition

void setAutoStartSharedElementTransition (boolean enabled)

绑定到徽标时启用或禁用自动startPostponedEnterTransition()。 当它被禁用时,应用程序必须调用startPostponedEnterTransition()来启动windowEnterTransition。 默认情况下,当活动上没有设置windowEnterSharedElementTransition时,它将被禁用。

Parameters
enabled boolean

setSharedElementEnterTransition

void setSharedElementEnterTransition (Activity activity, 
                String sharedElementName)

Parameters
activity Activity
sharedElementName String

setSharedElementEnterTransition

void setSharedElementEnterTransition (Activity activity, 
                String sharedElementName, 
                long timeoutMs)

Parameters
activity Activity
sharedElementName String
timeoutMs long

startPostponedEnterTransition

void startPostponedEnterTransition ()

手动启动推迟输入转换。

Hooray!