次の方法で共有


SharedElementCallback.OnSharedElementsArrived Method

Definition

Called during an Activity Transition when the shared elements have arrived at the final location and are ready to be transferred.

[Android.Runtime.Register("onSharedElementsArrived", "(Ljava/util/List;Ljava/util/List;Landroid/app/SharedElementCallback$OnSharedElementsReadyListener;)V", "GetOnSharedElementsArrived_Ljava_util_List_Ljava_util_List_Landroid_app_SharedElementCallback_OnSharedElementsReadyListener_Handler", ApiSince=23)]
public virtual void OnSharedElementsArrived (System.Collections.Generic.IList<string>? sharedElementNames, System.Collections.Generic.IList<Android.Views.View>? sharedElements, Android.App.SharedElementCallback.IOnSharedElementsReadyListener? listener);
[<Android.Runtime.Register("onSharedElementsArrived", "(Ljava/util/List;Ljava/util/List;Landroid/app/SharedElementCallback$OnSharedElementsReadyListener;)V", "GetOnSharedElementsArrived_Ljava_util_List_Ljava_util_List_Landroid_app_SharedElementCallback_OnSharedElementsReadyListener_Handler", ApiSince=23)>]
abstract member OnSharedElementsArrived : System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Android.Views.View> * Android.App.SharedElementCallback.IOnSharedElementsReadyListener -> unit
override this.OnSharedElementsArrived : System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Android.Views.View> * Android.App.SharedElementCallback.IOnSharedElementsReadyListener -> unit

Parameters

sharedElementNames
IList<String>

The names of the shared elements that are being transferred..

sharedElements
IList<View>

The shared elements that are part of the View hierarchy.

listener
SharedElementCallback.IOnSharedElementsReadyListener

The listener to call when the shared elements are ready to be hidden in the source Activity or shown in the destination Activity.

Attributes

Remarks

Java documentation for android.app.SharedElementCallback.onSharedElementsArrived(java.util.List, java.util.List, android.app.OnSharedElementsReadyListener).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to