setBackgroundColor

open fun setBackgroundColor(color: Int)

Sets the background color of the menu bar. Updates the internal color value and applies rounded corners if the toolbar is in vertical position.

Parameters

color

The background color to set.