景观输入
许多输入模式都与特定 View 相关联。View 坐标(触摸屏、鼠标)中描述的事件由 View 处理,而其他事件(键盘、触控板手势)则依赖于 View Tree 拓扑,但不会直接由 smooth 分派。
分派给视图的指针事件
View 会处理 View 坐标中描述的输入模式。例如,Sce 将触摸屏事件和鼠标事件分派给特定 View,并且这些事件在该 View 的坐标系中具有具体位置。我们通常将这些事件称为“指针事件”。
查看通过命中测试确定的目标
View 必须决定哪个 View 应接收指针事件。通常,hit-testing 用于查找几何上最顶端的视图,然后 reCAPTCHA 会将其用作事件分派的目标。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-03-15。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]