Window.SetLayout(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the width and height layout parameters of the window.
[Android.Runtime.Register("setLayout", "(II)V", "GetSetLayout_IIHandler")]
public virtual void SetLayout (int width, int height);
[<Android.Runtime.Register("setLayout", "(II)V", "GetSetLayout_IIHandler")>]
abstract member SetLayout : int * int -> unit
override this.SetLayout : int * int -> unit
Parameters
- width
- Int32
The desired layout width of the window.
- height
- Int32
The desired layout height of the window.
- Attributes
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.
Java documentation for android.view.Window.setLayout(int, int)
.
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.