SunnyWeather
SunnyWeather copied to clipboard
An open source weather application for Android platform as the practice project in "First Line of Android" of Chapter 15.
**[项目地址](https://github.com/SaltedFish-Extreme/SunnyWeather)** ****** 最大的不同就是使用了***和风天气api***,然后升级sdk版本到31并最低兼容到26,相比于此库整体升了两个版本 这个项目的效果基本都实现了,过时的废弃的方法也更新了,还加了一些东西,作为代码参考比对应该是没问题的
根据《第一行代码(第三版)》第15.3小节 搭建MVVM项目架构,书中有一句话 由于我们引入了Material库,所以一定要记得将AppTheme的parent主题改成 MaterialComponents模式,也就是将原来的AppCompat部分改成MaterialComponents即 可。 但是我看了实际项目中的代码,app/src/main/res/values/styles.xml,它的代码如下 ``` @color/colorPrimary @color/colorPrimaryDark @color/colorAccent ``` 也就是说parent主题并没有使用 MaterialComponents,想咨询一下是书上描述写错了,还是代码写错了?