set Card Background Style
fun setCardBackgroundStyle(backgroundColorHex: String? = null, borderColorHex: String? = null, borderWidthPx: Float? = null, borderRadiusPx: Float? = null)
Content copied to clipboard
Sets background styles for this view. If all parameters are null, this method has no effect. IMPORTANT: This method requires API level 27 or higher
Parameters
background Color Hex
The background color (in hex format) for the view, or null
border Color Hex
The color for the background border (in hex format) of this view, or null
border Width Px
The width of the background border in pixels, or null
border Radius Px
The radius for the corners of the border in pixels, or null
fun setCardBackgroundStyle(backgroundColor: Int? = null, borderColor: Int? = null, borderWidthPx: Float? = null, borderRadiusPx: Float? = null)
Content copied to clipboard
Sets background styles for this view. If all parameters are null, this method has no effect.
Parameters
background Color
The background color for the view, or null
border Color
The color for the background border of this view, or null
border Width Px
The width of the background border in pixels, or null
border Radius Px
The radius for the corners of the border in pixels, or null