Layout attributes
With Android 7.0, the <layout> manifest element supports several attributes that affect how an activity behaves in multi-window mode:
android:defaultWidth
Default width of the activity when launched in freeform mode.
android:defaultHeight
Default height of the activity when launched in freeform mode.
android:gravity
Initial placement of the activity when launched in freeform mode. See the
Gravity reference for suitable values.
android:minHeight, android:minWidth
Minimum height and minimum width for the activity in both split-screen and freeform modes. If the user moves the divider in split-screen mode to make an activity smaller than the specified minimum, the system crops the activity to the size the user requests.
For example, the following code shows how to specify an activity's default size and location, and its minimum size, when the activity is displayed in freeform mode: