キーボード入力を処理する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Compose の方法を試す
Jetpack Compose は、Android に推奨される UI ツールキットです。Compose でのタップと入力について学習します。
Android システムでは、UI のテキスト フィールドにフォーカスが移ると、ソフト入力方法と呼ばれる画面キーボードが表示されます。最良のユーザー エクスペリエンスを提供するために、想定される入力のタイプ(電話番号やメールアドレスなど)と入力方法の動作(スペルミスの自動修正を行うかどうかなど)に関する特性を指定できます。
Android は、画面上の入力方法に加えてハードウェア キーボードもサポートしているため、接続されたキーボードをサポートするようにアプリを最適化することも重要です。
これらのトピックなどについては、以下のドキュメントをご覧ください。
レッスン
- 入力方法のタイプの指定
- 電話番号、ウェブアドレス、またはその他の形式用に設計されたものなど、特定のソフト入力方法を表示する方法を学びます。また、スペル候補の動作や Done や Next などのアクション ボタンの特性を指定する方法も学びます。
- 入力方法の表示の処理
- ソフト入力方法を表示するタイミングを指定する方法と、縮小された画面スペースに合わせてレイアウトを調整する方法を学びます。
- キーボード ナビゲーションのサポート
- ユーザーがキーボードを使用してアプリ内をナビゲートできることを確認する方法と、ナビゲーション順序に必要な変更を加える方法を学びます。
- キーボード アクションの処理
- ユーザー アクションのキーボード入力に直接応答する方法を学びます。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。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."]]