How to change toolbar text color from MaterialComponents.DayNight theme?

后端 未结 5 1681
萌比男神i
萌比男神i 2021-02-20 17:58

I am using MaterialComponents.DayNight theme in my app. In the day mode, toolbar text color is black. But when I switch to night mode toolbar text color is remain black, so it\'

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-20 18:24

    Set your parent theme to parent="Theme.MaterialComponents.DayNight.DarkActionBar.Bridge"

    By using this, you will keep your ActionBar's original theme with DarkActionBar attributes on top of the overal DayNight theme from MaterialComponents.

提交回复
热议问题