'About Material3 Toolbar DynamicColors

I'm using Material3 Theme. Theme.Material3.Light.NoActionBar

Now the background of bottom navigation view was changed into the Dynamic Color automatically But for the toolbar, it doesn't work.

DynamicColors.applyToActivitiesIfAvailable(getApplication());



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source