Drawables

Used to access drawables from an applications resources

View in Playground

Accessing a vector resource

Using the vectorResource function, a single vector drawable resource can be accessed.

vectorResource(id = R.drawable.ic_baseline_account_circle_24)

Accessing an image resource

Using the imageResource function, a single image drawable resource can be accessed.

imageResource(id = R.drawable.outline_accessibility_black_18dp)