setColors

public Unit setColors(@ColorInt() Integer primary, @ColorInt() Integer accent)

Sets the primary and accent colors of drawer.

Parameters

primary

The new primary color.

accent

The new accent color.


public Unit setColors(ColorsScheme colors)

Sets the primary and accent colors of drawer based on a schema.

Parameters

colors

The schema from which the colors are to be set.