FragmentTransaction.AddSharedElement(View, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used with to map a View from a removed or hidden Fragment to a View from a shown or added Fragment.
[Android.Runtime.Register("addSharedElement", "(Landroid/view/View;Ljava/lang/String;)Landroid/app/FragmentTransaction;", "GetAddSharedElement_Landroid_view_View_Ljava_lang_String_Handler")]
public abstract Android.App.FragmentTransaction? AddSharedElement (Android.Views.View? sharedElement, string? name);
[<Android.Runtime.Register("addSharedElement", "(Landroid/view/View;Ljava/lang/String;)Landroid/app/FragmentTransaction;", "GetAddSharedElement_Landroid_view_View_Ljava_lang_String_Handler")>]
abstract member AddSharedElement : Android.Views.View * string -> Android.App.FragmentTransaction
Parameters
- sharedElement
- View
A View in a disappearing Fragment to match with a View in an appearing Fragment.
- name
- String
The transitionName for a View in an appearing Fragment to match to the shared element.
Returns
- Attributes
Remarks
Used with to map a View from a removed or hidden Fragment to a View from a shown or added Fragment.
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.