gankiodemo
Introduction: 这是一个采用 MVP+Retrofit+Retrofit 实现的干货集中营,大部分控件使用 android 的 Material Design 控件,非常适合新手的项目!
Tags:
MVP-Retrofit-Retrofit-这是一个采用 MVP+Retrofit+RxJava 的 demo. 使用了有道翻译的 Api 以及 GankIo 的 Api,非常感谢开源人对初学者的帮助!
应用截图
简单介绍
1、网络层采用 Retrofit 加 RxJava 的模式,访问的接口在这里-->http://gank.io/api。
2、图片加载使用的是 Glide 加载。
3、使用 PhotoView 进行大图展示,第一次使用感觉就像是另一个 imageview 那么好用。
4、WebView 方面还在学习,使用的是 android 自带的 WebView。
5、整个界面风格比较简约,使用 android 的 CoordinatorLayout 结合 ToolBar 和 FloatingActionButton 做动态布局,主题切换采用的是淡进淡出的效果。
6、使用 RecycleView+CardView 解析接口中获取的 json 数据并展示。
7、下拉刷新使用的是系统的 SwipeRefreshLayout,上拉加载是以添加装饰的方式放在在 Recycle 的 Adapter 中。
8、翻译小工具,存在只是为了不让这个应用太单一。使用的接口是有道翻译的 api,戳我拿 api。
9、整个 app 使用 MVP 模式加上对 recycleview 的抽取,让逻辑神马的变得非常简单,根本没有初学时那么复杂了!很棒啊!
其他
我的 CSDN blog:潜水的沙
License
/*
* Copyright (C) 2016 ahmclishihao
*
* GankS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GankS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GankS. If not, see <http://www.gnu.org/licenses/>.
*/