RemoteViews.RemoteResponse.AddSharedElement(Int32, String) Method

Definition

Adds a shared element to be transferred as part of the transition between Activities using cross-Activity scene animations. The position of the first element will be used as the epicenter for the exit Transition. The position of the associated shared element in the launched Activity will be the epicenter of its entering Transition. See also:

[Android.Runtime.Register("addSharedElement", "(ILjava/lang/String;)Landroid/widget/RemoteViews$RemoteResponse;", "GetAddSharedElement_ILjava_lang_String_Handler", ApiSince=29)]
public virtual Android.Widget.RemoteViews.RemoteResponse AddSharedElement(int viewId, string sharedElementName);
[<Android.Runtime.Register("addSharedElement", "(ILjava/lang/String;)Landroid/widget/RemoteViews$RemoteResponse;", "GetAddSharedElement_ILjava_lang_String_Handler", ApiSince=29)>]
abstract member AddSharedElement : int * string -> Android.Widget.RemoteViews.RemoteResponse
override this.AddSharedElement : int * string -> Android.Widget.RemoteViews.RemoteResponse

Parameters

viewId
Int32

int : The id of the view to be shared as part of the transition

sharedElementName
String

String : The shared element name for this view. This value cannot be null .

Returns

This value cannot be null .

Attributes

Remarks

Java documentation for RemoteViews.RemoteResponse.

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