文件最后提交记录最后更新时间
docs: add OHOS API documentation (1290 APIs, 66 modules) Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
README.md

View API 列表

本模块包含 10 个 API。

Events(事件)

API 说明 鸿蒙支持
bounds-changed 在 View 的边界因布局变化而改变时触发,可通过 view.getBounds() 获取新的边界值。 支持

Methods(方法)

API 说明 鸿蒙支持
new View() 创建新的 View。 支持
view.addChildView(view[, index]) 添加子视图,默认追加到子视图列表末尾。 支持
view.removeChildView(view) 移除指定子视图;若该视图不是当前视图的子视图,则此方法无操作。 支持
view.setBounds(bounds) 设置视图相对于父视图的边界区域。 支持
view.getBounds() 返回 Rectangle,表示当前视图相对于父视图的边界区域。 支持
view.setBackgroundColor(color) 设置视图的背景颜色,十六进制格式中 alpha 通道可选。 支持
view.setBorderRadius(radius) 设置视图的圆角半径。 支持
view.setVisible(visible) 设置视图是否可见。 支持

Properties(属性)

API 说明 鸿蒙支持
view.children View 数组属性,表示当前视图的所有子视图。 支持