- सिंटैक्स:
<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
- स्प्लिट स्क्रीन और फ़्री फ़ॉर्म मोड, दोनों में गतिविधि के लिए कम से कम चौड़ाई. अगर उपयोगकर्ता डिवाइडर को स्प्लिट स्क्रीन मोड का इस्तेमाल करके, किसी गतिविधि को तय किए गए कम से कम हिस्से से छोटा करने के लिए, सिस्टम गतिविधि को उपयोगकर्ता के अनुरोध के हिसाब से चौड़ाई.
- इसमें पेश किया गया:
- एपीआई लेवल 24
- यह भी देखें:
<activity>
<लेआउट>
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 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)"]]