GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemTextStyle - Android

The BlazeWidgetItemTitleTextStyle class defines the style settings for the title of a BlazeWidgetItemStyle. This includes properties such as font, letter spacing, text color, line height, number of lines, and alignment.

Properties

fontResId

var fontResId: Int?

A resource id representing the path of the font.

letterSpacing

var letterSpacing: Float?

A Float representing the letter spacing for the title.

textColor

var textColor: Int

A Int representing the text color of the title.

textSize

var textSize: Int

A Float representing the text size of the title.

lineHeight

var lineHeight: Int?

A Int representing the line height of the title.

This property is available only to Android versions that are equals or greater than 29 (Q). For lower API versions - no-op.

maxLines

var maxLines: Int

An Int representing the number of max lines for the title.

gravity

var gravity: Int

An Int representing the alignment of the title.


Did this page help you?