SharedElementCallback.OnMapSharedElements 方法

定义

允许 SharedElementCallback 调整共享元素名称到视图的映射。

[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

参数

names
IList<String>

从调用活动或片段中传输的所有共享元素的名称,顺序为它们提供。

sharedElements
IDictionary<String,View>

共享元素名称到 Views 的映射。 最佳猜测将基于 transitionNames 填充到 sharedElements 中。

属性

注解

允许 SharedElementCallback 调整共享元素名称到视图的映射。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于