Compartilhar via


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

Attributes

Remarks

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

Java documentation for android.app.FragmentTransaction.addSharedElement(android.view.View, java.lang.String).

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