您好,欢迎光临本网站![请登录][注册会员]  
文件名称: kotlin实现的干货集中营客户端GankClient.zip
  所属分类: 其它
  开发工具:
  文件大小: 781kb
  下载次数: 0
  上传时间: 2019-07-19
  提 供 者: weixin_********
 详细说明: gank.io kotlin实现的干货集中营客户端 风格采用了Material Design. 多数控件都是design包里面的。 项目模式 Kotlin MVP Dagger2 Rxjava DataBinding Retrofit Okhttp3 DeepLinkDispatch Gson Glide ByeBurger Kotlin 让你的代码量大大减少,函数式编程让你爽到飞上天!如果你想学习Kotlin,本项目应该会给你不少帮助。 MVP 通过契约类Contract管理View Model Presenter接口。 Model -- 主要处理业务,用于数据的获取(如网络、本地缓存)。 View -- 用于 把数据展示,并且提供交互。 Presenter -- View和Model交互的桥梁,二者通过Presenter建立联系。  主要流程如下: 用户与View交互,View得知用户需要加载数据,告知Presenter,Presenter则告知Model,Model拿到数据反交于Prsenter,Presenter将数据交给View进行展示。 Dagger2 项目中,主要进行presenter、model、retrofit Api等类的注入操作。  ApiComponent 主Component、用于注入AppComponent、便于提供子Component依赖。     依赖于:     1.ApiModule(提供okhttpClient、Retrofit、Api等) 2.AppModule(提供context对象(okhttp拦截器所需))  FuckGoodsComponent 父Component为ApiComponent 用于注入FuckGoodsPresenter 依赖于: FuckGoodsModule(提供FuckGoodsView)  RandomComponent 父Component为ApiComponent 用于注入RandomPresenter 依赖于 : RandomModule(提供RandomView)     Rxjava Retrofit okhttp3 主要用于网络访问。 DeepLinkDispatch 基于路由进行页面转发。   GankClientUri 定义一些路由规则、URI等   GankRouter 统一由此进行路由操作 GSON 用于json的解析操作。 Glide 用于图片的加载。 ByeBurGer 用于导航栏以及悬浮按钮滑动隐藏。 Copyright 2016 androidwing1992 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. 标签:kotlin
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索:
 输入关键字,在本站1000多万海量源码库中尽情搜索: