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: BlazeWidgetItemTextStyleThe text style of the event time in this state. See BlazeWidgetItemTextStyle.
isVisible
var isVisible: BooleanWhether the event time is visible in this state.
backgroundColor
var backgroundColor: IntThe 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: BlazeDpThe 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: IntThe border color of the element in this state.
borderWidth
var borderWidth: BlazeDpThe border width of the element in this state.
Default values
| Property | Default |
|---|---|
isVisible | true for upcoming; false for live and ended |
backgroundColor | black at 60% opacity |
textStyle.textSize | 11sp |
textStyle.textColor | #FFFFFF |
textStyle.maxLines | 1 |
cornerRadius | 10dp |
borderColor | #000000 |
borderWidth | 0dp |
Updated 11 days ago
Did this page help you?
