View.Inflate(Context, Int32, ViewGroup) View.Inflate(Context, Int32, ViewGroup) Method

Definition

Inflate a view from an XML resource.

[Android.Runtime.Register("inflate", "(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;", "")]
public static Android.Views.View Inflate (Android.Content.Context context, int resource, Android.Views.ViewGroup root);
static member Inflate : Android.Content.Context * int * Android.Views.ViewGroup -> Android.Views.View

Parameters

context
Context Context

The Context object for your activity or application.

resource
Int32 Int32

The resource ID to inflate

root
ViewGroup ViewGroup

A view group that will be the parent. Used to properly inflate the layout_* parameters.

Returns

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

See also