*基于MVP架构、遵循Material Design的Android应用。包括新闻,图片,笑话,天气,聊天机器人等等。欢迎吐槽,欢迎点赞. *
项目基于MVP架构、通篇使用免费Api > 百度Api。以下是各个模块介绍:
数据源来至易源新闻api。通过Glide显示图片,点击跳转详情页时图片放大,效果杠杆的。通过设置不同的频道号获取新闻,新闻均来之网络,已在新闻详情页标题说明出处。
只有文本和图片两类,使用recycleView同样支持上拉加载,下拉刷新,图片双击放大及移动使用开源框架PhotoView。
使用MediaPlay播放音乐,通过Presenter控制音乐的业务,Fragment负责各个按钮,album的更新,model去获取播放地址、album地址、播放列表。支持搜索框实时搜索歌曲。
使用图灵机器人api、原api提供许多接口,鄙人只取一瓢文本对话。注释里把对话过程写成请求与响应。说实话这个机器人还是比较单纯,仅有时能根据上下文语境对话。
天气页从和风天气获取的到json数据,有两个data 键,用了个包才解析成功,图标默认蓝色背景,也就是navigation图片上不协调的,p图什么的最烦了。详情页暂未编写也就是一堆setText,也就直接打印出json了。
-
ButterKnife Link: https://github.com/JakeWharton/butterknife
-
glide Link: https://github.com/bumptech/glide
-
PhotoView Link: https://github.com/chrisbanes/PhotoView
-
EventBus Link: https://github.com/greenrobot/EventBus
-
Gson Link: https://github.com/google/gson
-
logutils Link: https://github.com/pengwei1024/LogUtils
-
Volley Link: https://android.googlesource.com/platform/frameworks/volley
-
Umeng Link: http://www.umeng.com/
-
waitingdots Link: https://github.com/tajchert/WaitingDots
- E-mail: cchao1024@163.com
- QQ : 1037322351
- 简书: https://www.jianshu.com/u/ec0ddc32f71d
Copyright 2016 cchao1024@163.com
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.