BlazeWidgetItemBadgeStateStyle - Android
The BlazeWidgetItemBadgeStateStyle class represents the configuration for the badge of a widget item, for a specific state.
Properties
width
var width: BlazeDpThe width of the badge.
height
var height: BlazeDpThe height of the badge.
textStyle
var textStyle: BlazeWidgetItemTextStyleThe style configuration for the badge title.
text
var text: String?The text displayed in the badge.
backgroundColor
var backgroundColor: IntThe background color of the badge.
backgroundImageResId
@DrawableRes var backgroundImageResId: Int?The background image of the badge.
cornerRadius
var cornerRadius: BlazeDpThe corner radius of the badge.
cornerRadiusRatio
var cornerRadiusRatio: Float?The corner radius ratio is a value between 0.0 and 1.0, which computes the final corner radius for the badge. Overrides corner radius property.
For example, a value of 0.5 on a 1:1 width/height badge will result in a perfect circle appearance for the badge.
borderColor
var borderColor: IntThe border color of the badge.
borderWidth
var borderWidth: BlazeDpThe border width of the badge.
isVisible
var isVisible: BooleanA Boolean value that determines whether the badge is visible.
Updated 11 days ago
Did this page help you?
