- תחביר:
<layout android:defaultHeight="integer" android:defaultWidth="integer" android:gravity=["top" | "end" | ...] android:minHeight="integer" android:minWidth="integer" />
- בתוך:
<activity>
- תיאור:
- מכיל מאפיינים שמשפיעים על התנהגות פעילות במצב ריבוי חלונות.
- :
android:defaultHeight
- גובה ברירת המחדל של הפעילות כשמפעילים אותה במצב 'פריסה גמישה'.
android:defaultWidth
- רוחב ברירת המחדל של הפעילות כשהיא מופעלת במצב פריסה גמישה.
android:gravity
- המיקום הראשוני של הפעילות כשהיא מופעלת במצב 'פריסה גמישה'.
הערכים המתאימים מופיעים בכתובת
Gravity
. android:minHeight
- גובה מינימלי לפעילות גם במצב מסך מפוצל וגם במצב פריסה גמישה. אם המשתמש מזיז את המחיצה במצב מסך מפוצל כדי שפעילות תהיה קטנה מהמינימום שצוין, המערכת תחתוך את הפעילות גובה המשתמש מבקש.
android:minWidth
- רוחב מינימלי לפעילות גם במצב מסך מפוצל וגם במצב פריסה גמישה. אם המשתמש מזיז את המחיצה במצב מסך מפוצל כדי שפעילות תהיה קטנה מהמינימום שצוין, המערכת תחתוך את הפעילות הרוחב שהמשתמש מבקש.
- הושקו ב:
- רמת API 24
- למידע נוסף:
<activity>
<layout>
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# <layout\u003e\n\nsyntax:\n:\n\n ```xml\n \u003clayout android:defaultHeight=\"integer\"\n android:defaultWidth=\"integer\"\n android:gravity=[\"top\" | \"end\" | ...]\n android:minHeight=\"integer\"\n android:minWidth=\"integer\" /\u003e\n ```\n\ncontained in:\n: [\u003cactivity\u003e](/guide/topics/manifest/activity-element)\n\ndescription:\n: Contains attributes that affect how an activity behaves in multi-window mode.\n\nattributes:\n:\n\n `android:defaultHeight`\n : Default height of the activity when launched in free-form mode.\n\n `android:defaultWidth`\n : Default width of the activity when launched in free-form mode.\n\n `android:gravity`\n : Initial placement of the activity when launched in free-form mode.\n See [Gravity](/reference/android/view/Gravity) for suitable values.\n\n `android:minHeight`\n : Minimum height for the activity in both split-screen and free-form modes. If the user moves the divider in\n split-screen mode to make an activity smaller than the specified minimum, the system crops the activity to the\n height the user requests.\n\n `android:minWidth`\n : Minimum width for the activity in both split-screen and free-form modes. If the user moves the divider in\n split-screen mode to make an activity smaller than the specified minimum, the system crops the activity to the\n width the user requests.\n\n introduced in:\n : API Level 24\n\n see also:\n : [\u003cactivity\u003e](/guide/topics/manifest/activity-element)"]]