संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
लेआउट से, उपयोगकर्ता को आपके ऐप्लिकेशन के साथ इंटरफ़ेस करने के लिए विज़ुअल स्ट्रक्चर तय करने में मदद मिलती है. जैसे, किसी ऐक्टिविटी में. Android, कॉन्टेंट को दिखाने और उसकी पोज़िशन तय करने के लिए, कई लाइब्रेरी, कैननिकल स्टार्टिंग पॉइंट, और तकनीकें उपलब्ध कराता है.
Honor डिवाइस की सुरक्षित जगहों का ध्यान रखें. इनमें यूज़र इंटरफ़ेस (यूआई) के कुछ हिस्से शामिल हैं. जैसे, डिसप्ले कटआउट, एज-टू-एज इंसर्ट, एज डिसप्ले, सॉफ़्टवेयर कीबोर्ड, और सिस्टम बार. उपयोगकर्ताओं को कीबोर्ड के साथ इंटरैक्ट करने के लिए, फ़्लेक्सिबल लेआउट उपलब्ध कराएं.
चेतावनी: कीबोर्ड से कॉन्टेंट को ढकते समय सावधानी बरतें.
इंटरैक्शन एर्गोनॉमिक्स
अहम इंटरैक्शन, जैसे कि प्राइमरी नेविगेशन को स्क्रीन के ऐसे हिस्से में रखें जहां उपयोगकर्ता आसानी से पहुंच सकें. फ़्लोटिंग ऐक्शन बटन (एफ़एबी) से, इंटरैक्ट करने के लिए एक प्रमुख और आसानी से पहुंचने वाला पॉइंट मिलता है
कॉन्टेंट को शामिल करने वाले ग्रुप
कॉन्टेंट को ग्रुप करने के लिए कंटेनमेंट का इस्तेमाल करें, ताकि उपयोगकर्ता को कॉन्टेंट और कार्रवाइयों के बारे में जानकारी मिल सके. कॉन्टेंट को एक साथ ग्रुप करने के लिए, साफ़ तौर पर कंटेनमेंट का इस्तेमाल करने वाले कार्ड.
अलाइनमेंट
एक जैसे कॉन्टेंट और यूज़र इंटरफ़ेस (यूआई) एलिमेंट को एक ही तरह से अलाइन करें.
check_circle
यह करें
एक जैसे एलिमेंट के बीच एक जैसी दूरी रखें.
cancel
यह न करें
एक जैसे एलिमेंट के बीच अलग-अलग स्पेस देने से, टेक्स्ट को पढ़ने में मुश्किल होती है. इससे डिज़ाइन भी खराब दिखता है.
लेआउट ओरिएंटेशन
सिर्फ़ पोर्ट्रेट या आइडियल लेआउट का इस्तेमाल न करें: अलग-अलग आसपेक्ट रेशियो, साइज़ क्लास, और रिज़ॉल्यूशन का इस्तेमाल करें. इससे यह पता चलेगा कि उपयोगकर्ताओं को किस तरह का लेआउट दिखेगा.
ज़रूरी इंटरैक्शन
उपयोगकर्ता को हर व्यू में बहुत ज़्यादा कार्रवाइयां न दिखाएं.
लेआउट की खास बातों के बारे में जानकारी देना
पसंद के मुताबिक लेआउट बनाते समय, अलाइनमेंट, कंस्ट्रेंट या ग्रैविटी टर्म का इस्तेमाल करके यह बताएं कि कॉन्टेंट को लेआउट में कैसे रखा जाना चाहिए. यह जानकारी शामिल करें कि इमेज को सही तरीके से दिखाने के लिए, कंटेनर के हिसाब से कैसे रिस्पॉन्स देना चाहिए.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-08-28 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-28 (UTC) को अपडेट किया गया."],[],[],null,["A layout defines the visual structure for a user to interface with your app,\nsuch as in an activity. Android provides a range of libraries, canonical\nstarting points, and techniques to display and position content.\n\nGet Started\n\nStart designing Android layouts by learning [app anatomy](/develop/ui/compose/layouts/adaptive/app-anatomy) then how to\n[structure your app's content](/develop/ui/compose/layouts/adaptive/content-structure).\n\nTakeaways \n**Device safe areas**\n\n\nHonor device safe areas, which includes parts of the UI such as display\ncutouts, edge-to-edge insets, edge displays, software keyboards, and system\nbars. Provide a flexible layout for users to\ninteract with the keyboard.\nWarning: Be careful when covering content with the keyboard.\nAlas, your browser doesn't support HTML5 video. That's OK! You can still [download the video](/static/images/design/ui/mobile/layout-basics-video-1.mp4) and watch it with a video player. \n**Interaction ergonomics**\n\n\nKeep essential interactions, like primary navigation, in a reachable screen\narea. Floating action buttons (FABs) provide a\nprominent and reachable interaction point \n**Containment groups**\n\n\nUse containment to group related content to guide the user through content and\nactions. Cards using explicit containment to group content with related actions.\n\n**Alignment**\n\nProvide consistent alignment between similar content and UI elements.\n\n\u003cbr /\u003e\n\ncheck_circle\n\nDo \nEstablish consistent spacing between like elements. \ncancel\n\nDon't \nDisrupt readability by inconsistently spacing like elements, which can make designs appear haphazard. \n**Layout orientation**\n\n\nDon't stick to portrait or an idealized layout: Consider different aspect\nratios, size classes, and resolutions that users may encounter.\n\n\n**Essential interactions**\n\n\nDon't overwhelm your user with too many actions per view. \n**Notate layout specs**\n\n\nWhen building custom layouts, notate how content should sit within the layout\nusing alignment, constraints, or gravity terms. Include how images should\nrespond to their container to display properly.\n\n\u003cbr /\u003e"]]