Language

FragmentTransaction.AddSharedElement(View, String) Method

Definition

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

The same FragmentTransaction instance, allowing additional transaction operations to be chained.

Attributes

Remarks

Used with to map a View from a removed or hidden Fragment to a View from a shown or added Fragment.

Android reference for android.app.FragmentTransaction.addSharedElement.

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