شکل 1. نوار وضعیت و نوار ناوبری که مجموعاً نوارهای سیستم نامیده می شوند.
همه برنامه ها را طوری چیدمان کنید که محتوای شما از لبه بالایی تا لبه پایینی صفحه نمایش کشیده شود. این رفتار پیشفرض در Android 15 (سطح API 35) شروع میشود. این بدان معنی است که قسمت های بالا و پایین برنامه شما در پشت نوار وضعیت و نوار ناوبری قرار گرفته اند. نوار وضعیت و نوار ناوبری با هم نوارهای سیستم نامیده می شوند. نوارهای سیستم مناطقی هستند که عموماً به نمایش اعلانها، ارتباط وضعیت دستگاه و ناوبری دستگاه اختصاص دارند.
همپوشانیهای بین برنامه شما و مناطقی که رابط کاربری سیستم در آن نمایش داده میشود، نمونهای از ورودیهای پنجره است که قسمتهایی از صفحه شما را نشان میدهد که برنامه شما میتواند با رابط کاربری سیستم تلاقی کند. تلاقی با این بخشهای رابط کاربری میتواند به معنای نمایش بالای محتوا باشد، اما همچنین میتواند برنامه شما را در مورد حرکات سیستم مطلع کند.
انواع زیر پنجره در دسترس هستند.
بهطور پیشفرض، انتخاب کنید که پنجره برنامه خود را گسترش دهید تا در کل صفحه گسترده شود و محتوای برنامه را لبه به لبه پشت میلههای سیستم بکشید. برای جلوگیری از نمایش محتوای مهم و اهداف لمسی در پشت میله های سیستم، از افست استفاده کنید.
برنامههایی که محتوایی مانند فیلم یا تصاویر را نمایش میدهند، میتوانند به طور موقت نوارهای سیستم را برای تجربهای فراگیرتر پنهان کنند . قبل از اصلاح نوارهای سیستم، نیازها و انتظارات کاربران خود را به دقت در نظر بگیرید، زیرا آنها روشی استاندارد برای پیمایش دستگاه و مشاهده وضعیت آن به کاربران ارائه می دهند.
بریدگی نمایشگر ناحیهای در برخی دستگاهها است که تا سطح نمایشگر گسترش مییابد تا فضایی را برای حسگرها در جلوی دستگاه فراهم کند. برنامهها میتوانند برشهای نمایشگر را با جستوجو در موقعیتهایشان پشتیبانی کنند تا هیچ محتوای مهمی با ناحیه برش همپوشانی نداشته باشد.
انتقال صفحه کلید یک مثال رایج است که در آن ورودی های پنجره به صورت پویا به روز می شوند. برنامهها میتوانند وضعیت فعلی صفحهکلید را مشاهده کنند، حالتها را بهصورت برنامهریزی تغییر دهند، انیمیشنها را برای ورودیهای پنجره پشتیبانی کنند، و محتوای برنامه را بهطور یکپارچه بین انتقالهای صفحهکلید متحرک کنند.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-08-27 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-08-27 بهوقت ساعت هماهنگ جهانی."],[],[],null,["Try the Compose way \nJetpack Compose is the recommended UI toolkit for Android. Learn how to work with WindowInsets in Compose. \n[WindowInsets in Compose →](/develop/ui/compose/system/insets) \n\n\u003cbr /\u003e\n\n**Figure 1.** The status bar and navigation bar, collectively called the *system bars*.\n\nLayout all apps so that your content stretches from the top edge to the bottom\nedge of the screen. This is the default behavior beginning in Android 15\n(API level 35). This means that the top and bottom areas of your app are laid\nout behind the status bar and the navigation bar. Together, the status bar and\nthe navigation bar are called the *system bars*. The system bars are areas that\nare generally dedicated to the display of notifications, communication of device\nstatus, and device navigation.\n\nThe overlaps between your app and the areas where the system UI is displayed is\none example of *window insets*, which represent the parts of your screen where\nyour app can intersect with the system UI. Intersecting with these parts of the\nUI can mean displaying above the content, but it can also inform your app about\nsystem gestures.\n\nThe following types of window insets are available.\n\n- By default, opt-in to expand your app window to extend across the entire\n screen and draw app content [edge-to-edge](/training/gestures/edge-to-edge)\n behind the system bars. Use offsets to avoid displaying important content\n and touch targets behind system bars.\n\n- Apps that display content such as movies or images can temporarily [hide the\n system bars](/training/system-ui/immersive) for a more immersive experience.\n Carefully consider your users' needs and expectations before modifying the\n system bars, since they give users a standard way of navigating a device and\n viewing its status.\n\n- A *display cutout* is an area on some devices that extends into the display\n surface to provide space for sensors on the front of the device. Apps can\n support [display cutouts](/guide/topics/display-cutout) by querying their\n positions so that no important content overlaps the cutout area.\n\n- A keyboard transition is a common example where window insets are\n dynamically updated. Apps can observe the current keyboard state,\n programmatically toggle the states, support animations for window insets,\n and make app content animate seamlessly between keyboard transitions."]]