<转换>
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
指定运动序列的开始和结束状态、目标中间状态以及触发该运动的用户互动。
语法
<Transition
motion:constraintSetStart="start"
motion:constraintSetEnd="end"
[ motion:duration="integer" ] >
...
</Transition>
属性
motion:constraintSetStart
- 运动序列的初始状态。它可以是
<ConstraintSet>
的 ID,也可以是布局。如需指定 <ConstraintSet>
,请将此属性设为 "@+id/constraintSetId"
。如需指定布局,请将其设置为 "@layout/layoutState"
。
motion:constraintSetEnd
- 运动序列的最终状态。它可以是
<ConstraintSet>
的 ID,也可以是布局。如需指定 <ConstraintSet>
,请将此属性设为 "@+id/constraintSetId"
。如需指定布局,请将其设置为 "@layout/layoutState"
。
motion:duration
- 运动序列的时长(以毫秒为单位)。如果未指定,则系统会使用
<MotionScene>
元素的 defaultDuration
。
可以包含的元素
<onClick>
- 表示运动序列是由用户轻触触发的。
<onSwipe>
- 表示运动序列是由用户滑动触发的。
<KeyFrameSet>
- 为运动序列中的元素指定一个或多个中间位置或属性设置。
包含于
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-01-10。
[{
"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":"其他"
}]