Skip to content

Dragonxwl/MyBasePro

Repository files navigation

MyBasePro

DToast封装 https://www.jianshu.com/p/5a357292554e

retrofit2 + okhttp3 + rxjava2 实现简单网络请求 https://www.jianshu.com/p/a36a51166fb2

android studio 混淆、渠道包 https://www.jianshu.com/p/f3775cc81b6f

HttpURLConnection 封装网络请求 https://www.jianshu.com/p/8e02979448ff

xml文件简单解析 https://www.jianshu.com/p/c811bf1c983a

Intercept(拦截器)的使用 (retrofit2 + okhttp3 + rxjava2 框架中) https://www.jianshu.com/p/3a0027e08ada

android 数据保存之SharedPreferences https://www.jianshu.com/p/3fed7cda7ce8

Glide简单使用 https://www.jianshu.com/p/802d1eb9bf80

base 基类

Aplication

BaseActivity

    Activity基类 继承RxAppCompatActivity 绑定Activity生命周期 网络请求需要

BaseBean

    接口返回结构体基类

BaseTask

    AsyncTask封装的基类

bean 数据结构体

config 配置文件

ACConfig SP保存配置文件

CustomerConfig 客户端配置文件

demo 示例

httpDemoActivity httpUrlConnection 请求示例

okhttpDemoActivity okhttp 请求示例

getXmlValueDemoActivity 解析xml获取节点 请求示例

main

MainActivity 启动页

http httpUrlConnection请求封装相关文件

HttpUtilsHttpURLConnection 自定义请求封装

MyServer 请求方法中间步封装

Protocol 请求地址

okhttp okhttp相关文件

ApiService 定义请求接口

BaseObserver 接口请求返回结果 分类 观察者模式

ErrorCode 自定义接口错误码

HeaderInterceptor 自定义请求头拦截器

HttpErrorLogInterceptor 自定义请求头请求错误日志拦截器

RetrofitClient Retrofit类

RxSchedulers RxJava

utils 工具类

GsonUtil Gson与String转换

LogUtil 日志工具

SharePreferenceDataUtil SP保存工具类

StringUtils 获取常用字符串工具类

ToastUtil DToast封装工具类

xml xml解析

ParseXmlService xml解析类

第三方库Fork地址

DToast https://github.com/Dragonxwl/DToast

腾讯渠道包 https://github.com/Dragonxwl/VasDolly

Glide中文文档 https://github.com/Dragonxwl/glide-docs-cn

immersionbar沉浸式 https://github.com/Dragonxwl/ImmersionBar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages