GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemEventTimeElementStateStyle - Android

BlazeWidgetItemEventTimeElementStateStyle configures the event time element for a single stream state (upcoming, live, or ended). It is used by BlazeWidgetItemEventTimeElementStyle through its streamStates.

Properties

textStyle

var textStyle: BlazeWidgetItemTextStyle

The text style of the event time in this state. See BlazeWidgetItemTextStyle.

isVisible

var isVisible: Boolean

Whether the event time is visible in this state.

backgroundColor

var backgroundColor: Int

The background color behind the event time text in this state.

backgroundImageResId

var backgroundImageResId: Int?

An optional background image drawable resource for this state.

cornerRadius

var cornerRadius: BlazeDp

The corner radius of the element in this state.

cornerRadiusRatio

var cornerRadiusRatio: Float?

A value between 0.0 and 1.0 that computes the final corner radius, overriding cornerRadius.

borderColor

var borderColor: Int

The border color of the element in this state.

borderWidth

var borderWidth: BlazeDp

The border width of the element in this state.

Default values

PropertyDefault
isVisibletrue for upcoming; false for live and ended
backgroundColorblack at 60% opacity
textStyle.textSize11sp
textStyle.textColor#FFFFFF
textStyle.maxLines1
cornerRadius10dp
borderColor#000000
borderWidth0dp

Did this page help you?