键盘、鼠标和触控板
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。

第 3 层级 - 支持大屏设备
大屏设备通常配备键盘、鼠标或触控板,以增强用户输入和互动体验。
让您的应用支持:
- 通过外接键盘输入
- 在实体键盘和虚拟键盘之间切换上下文
- 基本的鼠标和触控板交互,例如点击、选择和滚动
后续步骤
如需详细了解如何扩展应用的输入功能,请参阅:
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Keyboard, mouse, and trackpad\n\nTIER 3 --- Large screen ready\n| **Objective:** Make your app [large screen ready](/docs/quality-guidelines/large-screen-app-quality#large_screen_ready) by meeting the [LS-I1](/docs/quality-guidelines/large-screen-app-quality#LS-I1) and [LS-I2](/docs/quality-guidelines/large-screen-app-quality#LS-I2) keyboard, mouse, and trackpad requirements of the [Large screen app\n| quality](/docs/quality-guidelines/large-screen-app-quality) guidelines.\n\nLarge screen devices often include a keyboard, mouse, or trackpad for enhanced\nuser input and interactivity.\n\nEnable your app to support:\n\n- Input from an external keyboard\n- Context switching between physical and virtual keyboards\n- Basic mouse and trackpad interactions, such as click, select, and scroll\n\nNext steps\n----------\n\nFor more information about how to extend your app's input capabilities, see:\n\n- [Input compatibility on large screens --- Compose](/develop/ui/compose/touch-input/input-compatibility-on-large-screens)\n- [Input compatibility on large screens --- views](/develop/ui/views/touch-and-input/input-compatibility-on-large-screens)"]]