次の方法で共有


SharedElementCallback.OnMapSharedElements Method

Definition

Lets the SharedElementCallback adjust the mapping of shared element names to Views.

[Android.Runtime.Register("onMapSharedElements", "(Ljava/util/List;Ljava/util/Map;)V", "GetOnMapSharedElements_Ljava_util_List_Ljava_util_Map_Handler")]
public virtual void OnMapSharedElements (System.Collections.Generic.IList<string>? names, System.Collections.Generic.IDictionary<string,Android.Views.View>? sharedElements);
[<Android.Runtime.Register("onMapSharedElements", "(Ljava/util/List;Ljava/util/Map;)V", "GetOnMapSharedElements_Ljava_util_List_Ljava_util_Map_Handler")>]
abstract member OnMapSharedElements : System.Collections.Generic.IList<string> * System.Collections.Generic.IDictionary<string, Android.Views.View> -> unit
override this.OnMapSharedElements : System.Collections.Generic.IList<string> * System.Collections.Generic.IDictionary<string, Android.Views.View> -> unit

Parameters

names
IList<String>

The names of all shared elements transferred from the calling Activity or Fragment in the order they were provided.

sharedElements
IDictionary<String,View>

The mapping of shared element names to Views. The best guess will be filled into sharedElements based on the transitionNames.

Attributes

Remarks

Lets the SharedElementCallback adjust the mapping of shared element names to Views.

Java documentation for android.app.SharedElementCallback.onMapSharedElements(java.util.List<java.lang.String>, java.util.Map<java.lang.String, android.view.View>).

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