3 Star 13 Fork 5

Gitee 极速下载 / GoodWeather

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/lilongweidev/GoodWeather
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

Good Weather

APP介绍与使用

  本项目没有自己搭建后台,所以自然不会有什么服务器数据库,数据来源于和风天气API,不了解的可以看看我的博客文章,也可以先通过二维码或者下载链接去下载APK体验,使用过程中有问题可以在GitHub上提出,或者在博客中评论。我会在第一时间回复,感谢您的阅读,山高水长,后会有期 ~ 将项目导入到Android Studio 有如下两种方式:

  1. 复制 https://github.com/lilongweidev/GoodWeather.git 在AS的导航栏中 VSC → Checkout from Version Control → Git .然后会弹出一个克隆项目的弹窗,粘贴刚才复制的地址,点击弹窗的Clone按钮就可以克隆GitHub上的项目到自己的AS中了。不过这个时候是比较看你的网速的,项目中的很多内容与你本地环境不同,所以需要下载和配置才行。
  2. 点击绿色的Code按钮,点击Download ZIP,直接下载压缩包到电脑本地,然后解压,通过AS 的导航栏 File → Open 找到刚才解压之后的文件,然后就是同步和配置即可。

答疑

  在Clone源码到本地Android Studio中DeBug运行时,进入地图页面时,发现没有定位或者是无反应,请检查Run下面的日志信息,看有无 "鉴权错误信息" 等字样,如果有的话则说明你需要使用自己项目生成的开发版SHA1,替换掉平台上的应用配置信息,当你看到这个源码之前,你肯定是从博客过来的,那么你可以点击Android 天气APP(一)开发准备进行百度开发者的账号注册并配置应用,文章里已经讲得很详细了,至于鉴权错误信息的处理你可以通过Android 百度地图SDK 自动定位、标记定位这篇文章,点击目录“疑问解决”来查看解决方案,祝您使用愉快。

  Windows中GitHub图片显示异常解决方法:打开hosts文件所在目录,C:\Windows\System32\drivers\etc\hosts,默认我们对hosts文件是没有修改权限的,需要开启修改权限,开启修改权限后,用随便用一个编辑器打开,添加的内容请参考这个hosts文件中最后的部分,对比你的本地进行添加即可。(注意这个开始和结束的标识)

APP功能描述

  15天天气预报、空气质量、生活建议、出行建议、灾害预警、分钟级降水、城市切换、城市搜索、常用城市、世界国家/地区的城市、壁纸切换、壁纸下载、地图天气、地图搜索定位、每日提醒、语音播报、语音搜索、快捷切换常用城市、应用自动更新、错误监控

运行效果图

演示GIF 每日GIF 分钟级降水GIF 壁纸切换GIF 地图搜索定位GIF 自动更新GIF 地图天气GIF 灾害预警GIF 更多天气预报GIF 更多空气质量GIF 更多生活指数GIF 世界城市GIF 常用城市GIF

GIF看不了的,打开下面的视频地址进行观看
APP演示视频地址

网址下载

点击下载好天气APP

扫码下载

下载图片

天气APP 博客专栏

天气APP

天气APP文章博客(一步一步开发天气APP)

Android 天气APP(一)开发准备
Android 天气APP(二)获取定位信息
Android 天气APP(三)访问天气API与数据请求
Android 天气APP(四)搭建MVP框架与使用
Android 天气APP(五)天气预报、生活指数的数据请求与渲染
Android 天气APP(六)旋转风车显示风力、风向
Android 天气APP(七)城市切换 之 城市数据源
Android 天气APP(八)城市切换 之 自定义弹窗与使用
Android 天气APP(九)细节优化、必应每日一图
Android 天气APP(十)继续优化、下拉刷新页面天气数据
Android 天气APP(十一)未来七天的天气预报、逐小时预报、UI优化
Android 天气APP(十二)空气质量、UI优化调整
Android 天气APP(十三)仿微信弹窗(右上角加号点击弹窗效果)、自定义背景图片、UI优化调整
Android 天气APP(十四)修复UI显示异常、优化业务代码逻辑、增加详情天气显示
Android 天气APP(十五)增加城市搜索、历史搜索记录
Android 天气APP(十六)热门城市 - 海外城市
Android 天气APP(十七)热门城市 - 国内城市
Android 天气APP(十八)常用城市
Android 天气APP(十九)更换新版API接口(更高、更快、更强)
Android 天气APP(二十)增加欢迎页及白屏黑屏处理、展示世界国家/地区的城市数据
Android 天气APP(二十一)滑动改变UI、增加更多天气数据展示,最多未来15天天气预报
Android 天气APP(二十二)改动些许UI、增加更多空气质量数据和生活建议数据展示
Android 天气APP(二十三)增加灾害预警、优化主页面UI
Android 天气APP(二十四)地图天气(上)自动定位和地图点击定位
Android 天气APP(二十五)地图天气(下)嵌套滑动布局渲染天气数据
Android 天气APP(二十六)增加自动更新(检查版本、通知栏下载、自动安装)
Android 天气APP(二十七)增加地图天气的逐小时天气、太阳和月亮数据
Android 天气APP(二十八)地图搜索定位
Android 天气APP(二十九)壁纸设置、图片查看、图片保存
Android 天气APP(三十)分钟级降水
Android 天气APP(三十一)每日提醒弹窗
Android 天气APP(三十二)快捷切换常用城市
Android 天气APP(三十三)语音播报
Android 天气APP(三十四)语音搜索
Android 天气APP(三十五)修复BUG、升级网络请求框架
Android 天气APP(三十六)运行到本地AS、更新项目版本依赖、去掉ButterKnife

文章代码是一篇一篇进行迭代的,也欢迎读者提供新的需求,适当采纳,更好的优化这个项目

联系邮箱:lonelyholiday@qq.com

博主:初学者-Study

版本说明

V 2.9 (最新版本)

  • 新版AS正常编译、更新项目版本依赖、去掉ButterKnife,使用ViewBinding

V 2.8

  • 增加友盟+性能监控SDK

V 2.7

  • 修复UI显示问题、资源图片处理、优化网络请求框架

V 2.6

  • 优化用户体验,新增快捷切换城市、语音播报、语音搜索功能

V 2.5

  • 分钟级降水、每日提醒

V 2.4

  • 新版壁纸管理、支持网络图片下载、优化页面UI

V 2.3

  • 新增地图逐小时天气、日出日落、月升月落、地图搜索定位

V 2.2

  • 新增应用自动更新

V 2.1

  • 新增地图天气

V 2.0

  • 新增灾害预警功能,主页面UI优化

V 1.9

  • 新增更多天气预报、空气质量、生活建议的数据、优化主页UI

V 1.8

  • 更新和风天气V7版API,删除热门城市、新增全球城市。启动页优化,黑白屏处理

V 1.7

  • 增加常用城市列表

V 1.6

  • 增加国内热门城市

V 1.5

  • 增加海外热门城市、新的天气UI效果

V 1.4

  • 增加搜索城市功能、历史搜索记录

V 1.3

  • 修复相关异常BUG,增加天气详情数据

V 1.2

  • 增加用户体验,允许自己修改背景

V 1.1

  • 七天天气预报、逐小时天气预报、界面UI优化

V 1.0

  • 初始版本、三天天气预报、空气质量、城市切换、生活指数
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

GoodWeather 是一款从零开发的 Android 天气 APP 展开 收起
Java
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mirrors/GoodWeather.git
git@gitee.com:mirrors/GoodWeather.git
mirrors
GoodWeather
GoodWeather
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891