Udostępnij za pośrednictwem


LayoutInflater Constructors

Definition

Overloads

LayoutInflater(Context)

Create a new LayoutInflater instance associated with a particular Context.

LayoutInflater(LayoutInflater, Context)

Create a new LayoutInflater instance that is a copy of an existing LayoutInflater, optionally with its Context changed.

LayoutInflater(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

LayoutInflater(Context)

Create a new LayoutInflater instance associated with a particular Context.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
protected LayoutInflater (Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Views.LayoutInflater : Android.Content.Context -> Android.Views.LayoutInflater

Parameters

context
Context

The Context in which this LayoutInflater will create its Views; most importantly, this supplies the theme from which the default values for their attributes are retrieved.

Attributes

Remarks

Create a new LayoutInflater instance associated with a particular Context. Applications will almost always want to use Context#getSystemService Context.getSystemService() to retrieve the standard Context#LAYOUT_INFLATER_SERVICE Context.INFLATER_SERVICE.

Java documentation for android.view.LayoutInflater.LayoutInflater(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

LayoutInflater(LayoutInflater, Context)

Create a new LayoutInflater instance that is a copy of an existing LayoutInflater, optionally with its Context changed.

[Android.Runtime.Register(".ctor", "(Landroid/view/LayoutInflater;Landroid/content/Context;)V", "")]
protected LayoutInflater (Android.Views.LayoutInflater? original, Android.Content.Context? newContext);
[<Android.Runtime.Register(".ctor", "(Landroid/view/LayoutInflater;Landroid/content/Context;)V", "")>]
new Android.Views.LayoutInflater : Android.Views.LayoutInflater * Android.Content.Context -> Android.Views.LayoutInflater

Parameters

original
LayoutInflater

The original LayoutInflater to copy.

newContext
Context

The new Context to use.

Attributes

Remarks

Create a new LayoutInflater instance that is a copy of an existing LayoutInflater, optionally with its Context changed. For use in implementing #cloneInContext.

Java documentation for android.view.LayoutInflater.LayoutInflater(android.view.LayoutInflater, 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

LayoutInflater(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected LayoutInflater (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.LayoutInflater : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.LayoutInflater

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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