- syntax:
- <layout android:defaultHeight="integer" android:defaultWidth="integer" android:gravity=["top" | "end" | ...] android:minHeight="integer" android:minWidth="integer" /> 
- contained in:
- <activity>
- description:
- Contains attributes that affect how an activity behaves in multi-window mode.
- attributes:
- android:defaultHeight
- Default height of the activity when launched in free-form mode.
- android:defaultWidth
- Default width of the activity when launched in free-form mode.
- android:gravity
- Initial placement of the activity when launched in free-form mode.
    See Gravityfor suitable values.
- android:minHeight
- Minimum height for the activity in both split-screen and free-form 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 height the user requests.
- android:minWidth
- Minimum width for the activity in both split-screen and free-form 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 width the user requests.
- introduced in:
- API Level 24
- see also:
- <activity>
 
      <layout>
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]
    
  
            
          