Freigeben über


ContextWrapper.CreateDisplayContext(Display) Method

Definition

Return a new Context object for the current Context but whose resources are adjusted to match the metrics of the given Display.

[Android.Runtime.Register("createDisplayContext", "(Landroid/view/Display;)Landroid/content/Context;", "GetCreateDisplayContext_Landroid_view_Display_Handler")]
public override Android.Content.Context? CreateDisplayContext (Android.Views.Display? display);
[<Android.Runtime.Register("createDisplayContext", "(Landroid/view/Display;)Landroid/content/Context;", "GetCreateDisplayContext_Landroid_view_Display_Handler")>]
override this.CreateDisplayContext : Android.Views.Display -> Android.Content.Context

Parameters

display
Display

A Display object specifying the display for whose metrics the Context's resources should be tailored and upon which new windows should be shown.

Returns

Attributes

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