אינדיקטור מיקום
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.

הרכיב PositionIndicator מציג את המיקום של המשתמש ברשימה או בערך טווח.
משתמשים בסמלי המיקום ברשימות או בהקשרים אחרים שבהם אפשר להשתמש בלחצן הצד המסתובב (RSB) כדי לגלול, לשנות הגדרות, לשלוט בעוצמת הקול או לבצע פעולות אחרות.
אנטומיה
שימוש
ריכזנו כאן כמה דוגמאות למיקומי אינדיקטורים.

מסכים גדולים

התנהגות תגובה
מיקום הסמן יישאר באותו גודל בכל גדלי המסכים, כלומר זווית העקומה תשתנה מעט כדי להתאים.

אינדיקטור מיקום
גובה הקשת של המחוון הוא תמיד 50dp (היא לא משתנה באופן יחסי), כלומר רק מידת הנטייה משתנה ככל שהגודל גדל.
אפשר לשנות את השוליים באופן ידני ל-2dp כדי להתאים ל-SysUI. הגובה יישאר קבוע ב-50dp.

אינדיקטור של שליטה/RSB
האורך של קשת המחוון הוא תמיד 76dp (הוא לא משתנה באופן יחסי), כלומר רק מידת הנטייה משתנה ככל שהגודל גדל.
אפשר:
- משנים את השוליים באופן ידני ל-2dp כדי להתאים ל-SysUI. הגובה יישאר קבוע ב-50dp.
- ממקמים את האינדיקטור בצד שמאל או ימין של המסך.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. 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,["# Position indicator\n\nThe [PositionIndicator](/reference/kotlin/androidx/wear/compose/material/package-summary#PositionIndicator(androidx.compose.foundation.ScrollState,androidx.compose.ui.Modifier,kotlin.Boolean)) component displays the user's location in a list or range value. \nUse position indicators in list or for other contexts when you can use the rotating side button (RSB) to scroll, adjust settings, control volume, or do other actions.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nAnatomy\n-------\n\nA. Track \nB. Indicator\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nUsage\n-----\n\nSee the following examples of position indicators.\n\nLarge screens\n-------------\n\n### **Responsive behavior**\n\nThe position indicator will remain the same size across screen sizes, this means the angle of the curve will change slightly to match.\n\n**Position indicator**\n\nThe arc of the indicator is always 50 dp high (doesn't scale proportionally) meaning only the degree changes as you go up in size. \n\n\nIt's possible to manually adjust the margin down to 2 dp to match SysUI. The height will remain fixed at 50 dp.\n\n**Control/RSB indicator**\n\nThe arc of the indicator is always 76 dp high (doesn't scale proportionally) meaning only the degree changes as you go up in size. \n\nIt's possible to:\n\n- Manually adjust the margin down to 2 dp to match SysUI. The height will remain fixed at 50 dp.\n- Have the indicator sit on the left or right side of the screen."]]