GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemImageGradientOverlayStyle - Android

The BlazeWidgetItemImageGradientOverlayStyle is responsible for defining the style of the gradient on top of the image displayed on each Widget item.

Properties

isVisible

var isVisible: Boolean

A Boolean value that determines whether the gradient is visible.

startColor

var startColor: Int

Defines the start color of the gradient.

endColor

var endColor: Int

Defines the end color of the gradient.

position

var position: BlazeGradientPosition

A BlazeGradientPosition param that defines the position of the gradient.

BlazeGradientPosition enum

The position of the gradient within the image.

Cases

ValueDescription
TOPAligns the top of the gradient to the top of the widget item.
CENTERAligns the gradient to be centered vertically within the widget item.
BOTTOMAligns the bottom of the gradient to the bottom of the widget item.

Did this page help you?