方法 View.setLabel
警告:此 API 已废弃。
签名
setLabel(label: string): View;
详细信息
参数
名称 |
类型 |
可选 |
说明 |
label |
string |
否 |
|
返回
View
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-27。
[null,null,["最后更新时间 (UTC):2025-01-27。"],[[["This API, `setLabel`, is deprecated and should not be used."],["The `setLabel` function takes a single required parameter, `label`, which is a string."],["The `setLabel` function returns a `View` object."],["The `setLabel` function is neither optional, final, protected, nor static."]]],["The `setLabel` API, which is deprecated, accepts a mandatory string parameter named `label`. This function returns a `View` object. The API is neither optional, final, protected, nor static. The provided `label` parameter lacks a description, but it is a required string for the function to operate.\n"]]