טיפול בקלט מהמקלדת
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדאי לנסות את התכונה 'כתיבה מהירה'
Jetpack Compose היא ערכת הכלים המומלצת לבניית ממשק משתמש ב-Android. מידע על מגע והזנת תוכן בחלונית הכתיבה.
מערכת Android מציגה מקלדת במסך – שנקראת שיטת קלט רכה – כששדה טקסט בממשק המשתמש מקבל את המיקוד.
כדי לספק את חוויית המשתמש הטובה ביותר, אפשר לציין מאפיינים של סוג הקלט הצפוי, כמו מספר טלפון או כתובת אימייל, ואת האופן שבו שיטת הקלט צריכה לפעול, כמו ביצוע תיקון אוטומטי של שגיאות איות.
בנוסף לשיטות הקלט במסך, Android תומך במקלדות חומרה, לכן חשוב גם לבצע אופטימיזציה של האפליקציה כך שתתמוך במקלדות מחוברות.
הנושאים האלה ונושאים נוספים מפורטים במסמכים הבאים.
שיעורי מוזיקה
- ציון סוג שיטת הקלט
- איך מציגים שיטות מסוימות של קלט רך, כמו שיטות שמיועדות למספרי טלפון, לכתובות אינטרנט או לפורמטים אחרים בנוסף, תוכלו ללמוד איך לציין מאפיינים כמו התנהגות של הצעות לאיות ולחצני פעולה כמו סיום או הבא.
- טיפול בחשיפה של שיטת הקלט
- איך מציינים מתי להציג את שיטת הקלט הווירטואלי ואיך צריך להתאים את הפריסה למרחב המסך המצטמצם
- תמיכה בניווט במקלדת
- כך מוודאים שמשתמשים יכולים לנווט באפליקציה באמצעות מקלדת, ומבצעים את השינויים הנדרשים בסדר הניווט.
- טיפול בפעולות במקלדת
- איך מגיבים ישירות להקלדה של משתמשים?
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון 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-26 (שעון UTC)."],[],[],null,["# Handle keyboard input\n\nTry the Compose way \nJetpack Compose is the recommended UI toolkit for Android. Learn about touch and input in Compose. \n[Touch and input →](/develop/ui/compose/touch-input) \n\nThe Android system shows an on-screen keyboard---known as a\n*soft input method*---when a text field in your UI receives focus.\nTo provide the best user experience, you can specify characteristics\nabout the type of input you expect, such as a\nphone number or email address, and how the input method must behave, such as\nperforming autocorrect for spelling mistakes.\n\nIn addition to the on-screen input methods, Android supports hardware keyboards, so it's\nalso important to optimize your app to support attached keyboards.\n\nThese topics and more are discussed in the following documentation.\n\nLessons\n-------\n\n**[Specify the input method type](/develop/ui/views/touch-and-input/keyboard-input/style)**\n: Learn how to show certain soft input methods, such as those designed for phone numbers, web\n addresses, or other formats. Also, learn how to specify characteristics such\n as spelling suggestion behavior and action buttons such as **Done** or **Next**.\n\n**[Handle input method visibility](/develop/ui/views/touch-and-input/keyboard-input/visibility)**\n: Learn how to specify when to show the soft input method and how\n your layout must adjust to the reduced screen space.\n\n**[Support keyboard navigation](/develop/ui/views/touch-and-input/keyboard-input/navigation)**\n: Learn how to verify that users can navigate your app using a keyboard\n and how to make any necessary changes to the navigation order.\n\n**[Handle keyboard actions](/develop/ui/views/touch-and-input/keyboard-input/commands)**\n: Learn how to respond directly to keyboard input for user actions."]]