語言

SharedElementCallback.OnMapSharedElements 方法

定義

讓 SharedElementCallback 調整共享元素名稱映射到 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

參數

names
IList<String>

所有從呼叫的活動或片段依照提供的順序傳輸的共享元素名稱。

sharedElements
IDictionary<String,View>

將共享元素名稱映射到檢視。 最佳猜測會根據 transitionNames 填入 sharedElements。

屬性

備註

讓 SharedElementCallback 調整共享元素名稱映射到 Views。

Android 參考資料。android.app.SharedElementCallback.onMapSharedElements

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於