Share via


LayoutInflater.CloneInContext(Context) Method

Definition

Create a copy of the existing LayoutInflater object, with the copy pointing to a different Context than the original.

[Android.Runtime.Register("cloneInContext", "(Landroid/content/Context;)Landroid/view/LayoutInflater;", "GetCloneInContext_Landroid_content_Context_Handler")]
public abstract Android.Views.LayoutInflater? CloneInContext (Android.Content.Context? newContext);
[<Android.Runtime.Register("cloneInContext", "(Landroid/content/Context;)Landroid/view/LayoutInflater;", "GetCloneInContext_Landroid_content_Context_Handler")>]
abstract member CloneInContext : Android.Content.Context -> Android.Views.LayoutInflater

Parameters

newContext
Context

The new Context to associate with the new LayoutInflater. May be the same as the original Context if desired.

Returns

Returns a brand spanking new LayoutInflater object associated with the given Context.

Attributes

Remarks

Create a copy of the existing LayoutInflater object, with the copy pointing to a different Context than the original. This is used by ContextThemeWrapper to create a new LayoutInflater to go along with the new Context theme.

Java documentation for android.view.LayoutInflater.cloneInContext(android.content.Context).

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