In my build.gradle, I included the material design library(version 1.1.0) but in styles.xml
, when I try to use Theme.MaterialComponents.DayNight
, it says cannot resolve symbol
. Wasn't the DayNight theme already implemented in material design library 1.1.0? Please help. Thanks.
https://m3.material.io/
https://m3.material.io/libraries/mdc-android/getting-started
According to the Material design 3
latest version is 1.5.0
implementation 'com.google.android.material:material:1.5.0'
style.xml
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.Material3.DayNight">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With