Window.width

Function/Meaning
Window width
Type
Window Class Properties
Explanation

Represents the width of the window.
You can also set the value.
On Android, it can only be read in the width of Activity.

Reference
Window.height
Window.setSize