Android.Views.Window.SetLayout Method
Set the width and height layout parameters of the window.

Syntax

[Android.Runtime.Register("setLayout", "(II)V", "GetSetLayout_IIHandler")]
public virtual void SetLayout (int width, int height)

Parameters

width
The desired layout width of the window.
height
The desired layout height of the window.

Remarks

Set the width and height layout parameters of the window. The default for both of these is MATCH_PARENT; you can change them to WRAP_CONTENT or an absolute value to make a window that is not full-screen.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1