轻触和输入概览
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
试用 Compose 方式
Jetpack Compose 是推荐在 Android 设备上使用的界面工具包。了解如何在 Compose 中使用触控和输入功能。
以下页面介绍了有关用户输入的所有内容,包括基本触控输入和手势,以及键盘和游戏控制器。您可以向应用添加复制和粘贴以及拼写检查等便捷功能,还可以开发自己的文本服务,以提供可作为应用分发给用户的自定义键盘(输入法)、字典和拼写检查工具。
如需了解详情,请参阅无障碍功能最佳实践。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# Touch and input overview\n\nTry the Compose way \nJetpack Compose is the recommended UI toolkit for Android. Learn how to use touch and input in Compose. \n[Handling user interactions →](/develop/ui/compose/touch-input/user-interactions/handling-interactions) \n\nThe following pages cover everything about user input, from basic touch input and gestures to\nkeyboards and game controllers. You can add convenient features such as copy and paste and spell\nchecking to your app. You can also develop your own text services to offer custom keyboards (Input\nMethod Editors), dictionaries, and spell checkers that you can distribute to users as\napplications.\n\nFor more information, see\n[Best practices for accessibility](/guide/topics/ui/accessibility). \n\nDocumentation\n-------------\n\n- [Input events overview](/guide/topics/ui/ui-events)\n- [Use touch gestures](/training/gestures)\n- [Handle keyboard input](/training/keyboard-input)\n- [Support game controllers](/training/game-controllers)\n- [Create an input method](/guide/topics/text/creating-input-method)\n- [Spell checker framework](/guide/topics/text/spell-checker-framework)"]]