71.7 Specifying Multi-Window Attributes
A number of attributes are available as part of the <layout> element for specifying the size and placement of an activity when it is launched into a multi-window mode. The initial height, width and position of an activity when launched in freeform mode may be specified using the following attributes:
•android:defaultWidth – Specifies the default width of the activity.
•android:defaultHeight – Specifies the default height of the activity.
•android:gravity – Specifies the initial position of the activity (start, end, left, right, top etc.).
Note that the above attributes apply to the activity only when it is displayed in freeform mode. The following example configures an activity to appear with a specific height and width at the top of the starting edge of the screen:
<activity android:name=".MainActivity ">
<layout android:defaultHeight...