קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בכרטיסי המידע אפשר לקבל גישה מהירה למידע ולפעולות שהמשתמשים צריכים כדי לבצע משימות. כדי להציג את קרוסלת המשבצות, מחליקים על תצוגת השעון. כדי לעבור בין המשבצות, מחליקים שוב. אי אפשר לגלול בתוך המשבצות עצמן.
המשתמשים יכולים לבחור אילו משבצות הם רוצים לראות. יש משבצות לבדיקה של מזג האוויר, להגדרת טיימר, למעקב אחר ההתקדמות היומית בכושר, להפעלה מהירה של אימון, להפעלת שיר, לסריקה של פגישה קרובה ולשליחת הודעה לאיש קשר מועדף.
איור 1.: כרטיסי המידע נותנים למשתמשים גישה למידע ולפעולות.
במקום להשתמש ב-Compose (או ב-Views), משתמשים בספריות protolayout ו-tiles של Jetpack כדי להגדיר את המשבצות באופן דקלרטיבי. מכיוון שהקובצי ה-Tiles מנוהלים בסביבה נפרדת ומרוחקת, יש צורך בגישות שונות לטעינת הנתונים, להצגתם ולעדכון שלהם. הפשטות שלהן מאפשרת ליצור, לבדוק ולפרוס אותן בקלות.
עקרונות הליבה
ב-Wear OS יש משבצות שמאפשרות לכם להציג כמות קטנה של מידע חשוב, והמשתמשים יכולים לקרוא את המידע אחרי שהם מעיינים במשבצת למשך כמה שניות. כדי לספק למשתמשים חוויה איכותית, כדאי לפעול לפי השיטות המומלצות הבאות:
אל תעמיסו את המשבצות בתוכן רב מדי. במקום זאת, כדאי לאפשר למשתמשים להקיש על המשבצות כדי לקבל מידע נוסף ולבצע פעולה במשטח אחר באפליקציה. אפשר לעיין במאמר הכללת מאגר אחד לפחות.
הגדרה אופרטיבית של הפריסה והתוכן של המשבצת. המערכת אחראית על הרינדור הסופי.
אין לאחזר תוכן בתדירות גבוהה או להתחיל משימות אסינכררוניות ממושכות בשירות המשבצות. כדי לבצע משימות שעשויות להימשך זמן מה – כמו קריאות לרשת – אפשר להשתמש ב-WorkManager כדי לתזמן משימות ברקע, ולשמור את התוצאות במטמון או באחסון המקומי.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Tiles provide quick access to the information and actions users need to get\nthings done. The tiles carousel is revealed by a swipe on the watch face, and\nadditional swipes will switch between tiles. Tiles themselves cannot be\nscrolled.\n\nUsers can choose what tiles they want to see. There are tiles to check the\nweather, set a timer, track daily fitness progress, quick-start a workout, play\na song, scan an upcoming meeting, and send a message to a favorite contact.\n**Figure 1.**: Tiles give users access to information and actions.\n\nInstead of using [Compose](/compose) (or [Views](/develop/ui/views/layout/declaring-layout)), Tiles are defined declaratively\nusing Jetpack's [protolayout](/jetpack/androidx/releases/wear-protolayout) and [tiles](/jetpack/androidx/releases/wear-tiles) libraries. Because Tiles are\nrendered in a separate, remote environment, they require different approaches to\nload, display, and update data within them. Their simplicity makes them\nstraightforward to build, test, and deploy.\n\nCore principles\n---------------\n\nWear OS provides tiles as a way for you to show a small amount of key\ninformation, which users can read through after they glance at a tile for a few\nseconds. To provide this high-quality experience for users, follow these best\npractices:\n\n- Don't overcrowd tiles with too much content. Instead, allow users to tap on tiles to learn more and take action on another surface in your app. See [Include (at least) one container](/design/ui/wear/guides/surfaces/tiles/bestpractices#include_at_least_one_container).\n- Declaratively define your tile's layout and content. The system is responsible for the final rendering.\n- Don't fetch content frequently or start long-running asynchronous work in your tile service. To perform work which may take some time to complete---such as network calls---use [WorkManager](/topic/libraries/architecture/workmanager/how-to/define-work#expedited) to schedule background tasks, and cache or store the results in local storage.\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [Show dynamic updates in tiles](/training/wearables/tiles/dynamic)\n- [Migrate to ProtoLayout namespaces](/training/wearables/tiles/migrate-to-protolayout)"]]