Resource

data class Resource(@DrawableRes val id: Int, val tint: Color? = null) : ToolbarIcon

An icon backed by a drawable resource.

Constructors

Link copied to clipboard
constructor(@DrawableRes id: Int, tint: Color? = null)

Properties

Link copied to clipboard
val id: Int

Drawable resource id of the icon.

Link copied to clipboard
val tint: Color?

Optional tint applied to the drawable, or null to leave it untinted.