是应为项目的主题样式与toolbar的主题样式与toolbar所在的activity的主题样式不一样所致的,只要将其修改一致即可
<!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</
是应为项目的主题样式与toolbar的主题样式与toolbar所在的activity的主题样式不一样所致的,只要将其修改一致即可
<!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</