SharedElementCallback.OnMapSharedElements 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许 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
参数
- sharedElements
- IDictionary<String,View>
共享元素名称到 Views 的映射。 最佳猜测将基于 transitionNames 填充到 sharedElements 中。
- 属性
注解
允许 SharedElementCallback 调整共享元素名称到视图的映射。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。