第二个 Android 11 开发者预览版现已推出,快来测试并分享您的反馈吧
added in version 25.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1

SharedElementCallback.OnSharedElementsReadyListener

public static interface SharedElementCallback.OnSharedElementsReadyListener

android.support.v4.app.SharedElementCallback.OnSharedElementsReadyListener


Listener to be called after onSharedElementsArrived(List, List, OnSharedElementsReadyListener) when the shared elements are ready to be hidden in the source Activity and shown in the destination Activity.

Summary

Public methods

abstract void onSharedElementsReady()

Call this method during or after the OnSharedElementsReadyListener has been received in onSharedElementsArrived(List, List, OnSharedElementsReadyListener) to indicate that the shared elements are ready to be hidden in the source and shown in the destination Activity.

Public methods

onSharedElementsReady

added in version 25.1.0
void onSharedElementsReady ()

Call this method during or after the OnSharedElementsReadyListener has been received in onSharedElementsArrived(List, List, OnSharedElementsReadyListener) to indicate that the shared elements are ready to be hidden in the source and shown in the destination Activity.