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)
被调用的延迟活动转换。
Public constructors |
|
---|---|
FullWidthDetailsOverviewSharedElementHelper() |
Public methods |
|
---|---|
boolean |
getAutoStartSharedElementTransition() 如果自动startPostponedEnterTransition()绑定到徽标时返回true。 |
void |
onBindLogo(FullWidthDetailsOverviewRowPresenter.ViewHolder vh) |
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
|
FullWidthDetailsOverviewSharedElementHelper ()
boolean getAutoStartSharedElementTransition ()
如果自动startPostponedEnterTransition()绑定到徽标时返回true。 当它被禁用时,应用程序必须调用startPostponedEnterTransition()
才能启动windowEnterTransition。 默认情况下,当活动上没有设置windowEnterSharedElementTransition时,它将被禁用。
Returns | |
---|---|
boolean |
void onBindLogo (FullWidthDetailsOverviewRowPresenter.ViewHolder vh)
notifyOnBindLogo(ViewHolder)
被调用。
Parameters | |
---|---|
vh |
FullWidthDetailsOverviewRowPresenter.ViewHolder : The ViewHolder that has bound logo view. |
void setAutoStartSharedElementTransition (boolean enabled)
绑定到徽标时启用或禁用自动startPostponedEnterTransition()。 当它被禁用时,应用程序必须调用startPostponedEnterTransition()
来启动windowEnterTransition。 默认情况下,当活动上没有设置windowEnterSharedElementTransition时,它将被禁用。
Parameters | |
---|---|
enabled |
boolean
|
void setSharedElementEnterTransition (Activity activity, String sharedElementName)
Parameters | |
---|---|
activity |
Activity
|
sharedElementName |
String
|
void setSharedElementEnterTransition (Activity activity, String sharedElementName, long timeoutMs)
Parameters | |
---|---|
activity |
Activity
|
sharedElementName |
String
|
timeoutMs |
long
|
void startPostponedEnterTransition ()
手动启动推迟输入转换。