Code Monkey home page Code Monkey logo

weather's Introduction

Weather (Android app)

A beautiful weather app: DynamicBackground (clear, rainy, foggy, etc), AqiView, DailyForecastView, HourlyForecastView and more.

一款精致的天气APP,动态天气背景(10*2种天气效果,每种区分白天和夜间)、一周天气曲线图、24H曲线图、空气质量/风速/日出日落图等。

Screenshot

Weather

GIF (size:28M)

Weather.gif

Sample APK

Weather.apk

Features 特性

  • Dynamic Weather Background | 动态天气背景:多达10*2种天气效果(区分白天和夜间),60FPS的SurfaceView,切换时平滑渐变
  • Custom Weather Views | 天气相关自定义View:一周天气曲线图、24H曲线图、空气质量/风速/日出日落图等
  • Custom ViewPager/PagerTitleStrip/EdgeEffect | 自定义的ViewPager/PagerTitleStrip/EdgeEffect:改写support中ViewPager,配套阻尼弹性越界效果(EdgeEffect)和标题指示器(PagerTitleStrip)
  • Sunny PullRefreshLayout | 为刷新天气而生的下拉刷新:based on baoyongzhang/android-PullRefreshLayout(基于support的SwipeRefreshLayout封装了下拉状态),自己写了个SunDrawable即下拉状态指示器
  • LabelSpinner | 多选项的设置菜单:说实话PopupMenu太不好用了

本项目开源的说明

  • 这个本是个差不多已完成的项目,写于2015年11月份,因为api接口和其他一些原因没有发布
  • 已删除了个人申请的天气api/定位geo转换的key以及一些和天气效果无关的代码,如什么通知栏、桌面小工具、位置管理之类的
  • 放到Github上,供大家,呃,不能说是学习吧,在自定义View方面还是值得一看的
  • 天气数据由和风天气提供,Github上的这个内置了3个样例数据,用来模拟效果
  • 项目的icon是flyme天气的,天气状态图标也是flyme天气的(有改动),font数字和英文字体取自MIUI(有改动),动态天气背景颜色从iOS天气取色
  • 最后,能看懂这行字的都知道下面的License只是个很礼貌的摆设

Developed By

License

Copyright 2016 Mixiaoxiao

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.

weather's People

Contributors

mixiaoxiao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.