View - view.setBackgroundColor(color)

概述

设置视图的背景颜色,十六进制格式中 alpha 通道可选。

基本信息

属性
模块 View
类型 Method
鸿蒙支持 支持