Gyro
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
根据包含陀螺仪传感器数据源的算术表达式(例如 ACCELEROMETER_ANGLE_X
),调整基于组或基于部分的父元素的某些属性。
此元素在 Wear OS 4 中推出。
语法
<Gyro x="arithmetic-expression" y="arithmetic-expression"
scaleX="arithmetic-expression" scaleY="arithmetic-expression"
angle="arithmetic-expression" alpha="arithmetic-expression">
</Gyro>
属性
Gyro
元素具有以下可选属性:
x
、y
- 一对算术表达式,在求值时,会指定陀螺效应应用于父元素的水平或垂直移动量。
scaleX
、scaleY
- 一对算术表达式,在求值时,会指定陀螺效应应用于父元素的水平或垂直大小缩放量。
angle
- 一个算术表达式,在求值时,表示此元素围绕陀螺仪传感器轴心点顺时针旋转的度数。
alpha
- 一个算术表达式,在求值时,指示此元素基于陀螺仪传感器应具有的透明度级别。值
0
表示此元素应是完全透明的。值 255
表示此元素应是完全不透明的。
为您推荐
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-17。
[{
"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":"其他"
}]