איור 1. שורת הסטטוס וסרגל הניווט, שנקראים ביחד סרגלי המערכת.
פריסת כל האפליקציות כך שהתוכן יתפרס מהקצה העליון לקצה התחתון של המסך. זו התנהגות ברירת המחדל החל מ-Android 15 (רמת API 35). המשמעות היא שהאזורים העליון והתחתון של האפליקציה ממוקמים מאחורי שורת הסטטוס וסרגל הניווט. ביחד, שורת הסטטוס וסרגל הניווט נקראים סרגלי המערכת. סרגלי המערכת הם אזורים שבדרך כלל מיועדים להצגת התראות, להעברת מידע על סטטוס המכשיר ולניווט במכשיר.
החפיפות בין האפליקציה לבין האזורים שבהם מוצג ממשק המשתמש של המערכת הן דוגמה לשוליים פנימיים של חלון, שמייצגים את החלקים במסך שבהם האפליקציה יכולה לחפוף לממשק המשתמש של המערכת. החלקים האלה של ממשק המשתמש יכולים לחפוף לתוכן, אבל הם יכולים גם לספק לאפליקציה מידע על תנועות במערכת.
אלה הסוגים של חלונות מוטבעים שזמינים:
כברירת מחדל, האפשרות להרחיב את חלון האפליקציה כך שיכסה את המסך כולו ולצייר את תוכן האפליקציה מקצה לקצה מאחורי סרגלי המערכת מופעלת. משתמשים בהזחות כדי להימנע מהצגת תוכן חשוב ויעדי מגע מאחורי סרגלי המערכת.
אפליקציות שמציגות תוכן כמו סרטים או תמונות יכולות להסתיר באופן זמני את סרגלי המערכת כדי ליצור חוויה סוחפת יותר.
לפני שמשנים את סרגלי המערכת, חשוב לשקול היטב את הצרכים והציפיות של המשתמשים, כי הם מספקים למשתמשים דרך סטנדרטית לנווט במכשיר ולראות את הסטטוס שלו.
חיתוך במסך הוא אזור במכשירים מסוימים שמתרחב אל פני המסך כדי לספק מקום לחיישנים בחלק הקדמי של המכשיר. אפליקציות יכולות לתמוך בחיתוך של המסך על ידי שאילתת מיקום, כך שתוכן חשוב לא יחפוף לאזור החיתוך.
מעבר בין מקלדות הוא דוגמה נפוצה לעדכון דינמי של שוליים פנימיים של חלון. אפליקציות יכולות לעקוב אחרי המצב הנוכחי של המקלדת, לשנות את המצבים באופן פרוגרמטי, לתמוך באנימציות של שוליים פנימיים של חלונות ולגרום לתוכן האפליקציה לעבור בצורה חלקה בין מעברים של המקלדת.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-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-08-27 (שעון UTC)."],[],[],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."]]