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

טקסט של זמן
אפשר להשתמש בטקסט של שעון כדי להציג את השעה וגם תווית אופציונלית בחלק העליון של המסך. אם במכשיר יש מסך עגול, הטקסט יהיה מעוגל.
אם למכשיר יש מסך מלבני, טקסט השעה מוצג ישר.
אפשר להוסיף תווית תוכן נוספת לתחילת טקסט השעה. כשמוסיפים תוכן מוביל, האורך המלא של הקשת לא יכול להיות גדול יותר מרבע ממסך השעון.
אנטומיה
כשיוצרים
TimeText
עם רכיבים שאפשר לגלול בהם, כמו רשימות, צריך לתכנן את
TimeText
כך שייעלם כשהרכיב גוללים. משתמשים ב-
Modifier.scrollAway
כדי לגלול
TimeText
לאורך, להציג או להסתיר את התצוגה, בהתאם למצב הגלילה.
א. תוכן מוביל
ב. מפריד
ג. זמן
שימוש
כדי להציג את זמן ההגעה המשוער באפליקציית מפות, משתמשים בטקסט של זמן עם תוכן מוביל, כפי שמוצג בדוגמה הבאה.

דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. 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,["# Time text\n\n[`TimeText`](/reference/kotlin/androidx/wear/compose/material/package-summary#TimeText(androidx.compose.ui.Modifier,androidx.wear.compose.material.TimeSource,androidx.compose.ui.text.TextStyle,androidx.compose.foundation.layout.PaddingValues,kotlin.Function0,kotlin.Function1,kotlin.Function0,kotlin.Function1,kotlin.Function0,kotlin.Function1))\nis a layout that shows the current time at the top of the screen.\n\n**Time Text**\n\nUse time text to display the time as well as an optional label on the top\nof the screen. When the device has a round screen time text is curved.\nWhen the device has a rectangular screen, time text is straight.\n\nYou can add an additional leading content label to the time text. When\nadding leading content, the full length of the arc should not be larger\nthan a quarter of the watch face.\n\nAnatomy\n-------\n\nWhen creating `TimeText` with scrollable elements such as lists, design the `TimeText` to fade away when the element scrolls. Use [Modifier.scrollAway](/reference/kotlin/androidx/wear/compose/material/package-summary#(androidx.compose.ui.Modifier).scrollAway(androidx.compose.foundation.ScrollState,androidx.compose.ui.unit.Dp)) to scroll `TimeText` vertically in and out of view, based on the scroll state.\n\n\n**A. Leading content\nB. Separator\nC. Time**\n\nUsage\n-----\n\nTo show the estimated time of arrival in a maps app, use time text with leading\ncontent as shown in the following example."]]