GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemBadgeStateStyle - Android

The BlazeWidgetItemBadgeStateStyle class represents the configuration for the badge of a widget item, for a specific state.

Properties

width

var width: BlazeDp

The width of the badge.

height

var height: BlazeDp

The height of the badge.

textStyle

var textStyle: BlazeWidgetItemTextStyle

The style configuration for the badge title.

text

var text: String?

The text displayed in the badge.

backgroundColor

var backgroundColor: Int

The background color of the badge.

backgroundImageResId

@DrawableRes var backgroundImageResId: Int?

The background image of the badge.

cornerRadius

var cornerRadius: BlazeDp

The 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: Int

The border color of the badge.

borderWidth

var borderWidth: BlazeDp

The border width of the badge.

isVisible

var isVisible: Boolean

A Boolean value that determines whether the badge is visible.


Did this page help you?