自定义光标
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。

第 1 层级 - 针对大屏设备提供差异化体验
自定义光标可指明用户如何以及何时可与界面元素和内容进行交互,从而让您的应用脱颖而出。系统提供自定义光标,例如:
- 针对文本字段显示 I 型光标
- 在可调整大小的层边缘显示的大小调整手柄
- 表明正在处理的旋转图标
不过,您可以创建特殊光标,例如:
- 悬停在游戏中的目标上时显示的十字准星
- 悬停在可缩放内容上时显示的放大镜
- 绘画或插图应用中的工具
后续步骤
如需了解如何在应用中创建自定义光标,请参阅:
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Custom cursors\n\nTIER 1 --- Large screen differentiated\n| **Objective:** Make your app [large screen differentiated](/docs/quality-guidelines/large-screen-app-quality#large_screen_differentiated) by meeting the [LS-P1](/docs/quality-guidelines/large-screen-app-quality#LS-P1) custom cursors requirement of the [Large screen app quality](/docs/quality-guidelines/large-screen-app-quality) guidelines.\n\nCustom cursors differentiate your app by indicating how and when users can\ninteract with UI elements and content. The system provides custom cursors, such\nas:\n\n- I-beam for text fields\n- Resize handles at resizable layer edges\n- Processing spinners\n\nBut you can create specialty cursors, such as:\n\n- Crosshairs when hovering over targets in games\n- A magnifying glass when hovering over zoomable content\n- Tools in drawing or illustration apps\n\nNext steps\n----------\n\nTo learn about creating custom cursors in your app, see:\n\n- [`PointerIcon`](/reference/kotlin/android/view/PointerIcon)\n- [Mouse pointer icons](https://chromeos.dev/en/android/pointer-styling)"]]