Outline
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
在文本元素周围绘制轮廓。
此元素在 Wear OS 4 中推出。
语法
<Outline color="argb-color | rgb-color" width="float">
</Outline>
属性
Outline
元素具有以下属性。某些属性是必需属性,其他则是可选属性。
必需属性
color
属性是必需属性。您必须使用 ARGB 格式(#ff000000
= 不透明的黑色)或 RGB 格式(#000000
= 黑色)指定颜色。
可选属性
width
属性是可选属性。此浮点属性用于指定轮廓延伸超出文本元素边缘的距离。
默认情况下,此属性的值为 2.0
。
内部元素
Outline
元素可以包含以下内部元素:
为您推荐
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-07-28。
[{
"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":"其他"
}]