Freigeben über


AlertDialog.Builder.Context Property

Definition

Returns a Context with the appropriate theme for dialogs created by this Builder.

public virtual Android.Content.Context Context { [Android.Runtime.Register("getContext", "()Landroid/content/Context;", "GetGetContextHandler")] get; }
[<get: Android.Runtime.Register("getContext", "()Landroid/content/Context;", "GetGetContextHandler")>]
member this.Context : Android.Content.Context

Property Value

A Context for built Dialogs.

Attributes

Remarks

Returns a Context with the appropriate theme for dialogs created by this Builder. Applications should use this Context for obtaining LayoutInflaters for inflating views that will be used in the resulting dialogs, as it will cause views to be inflated with the correct theme.

Java documentation for android.app.AlertDialog.Builder.getContext().

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