1 Star 1 Fork 1

yhbsoul / Android开发基础框架

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Android开发基础框架

项目介绍

okhttp 二次封装网络请求框架,picasso 加载图片,PictureSelector 选择照片,视频和拍照,zxingscanner 调取二维码扫描

软件架构

软件架构说明

安装教程

  1. Activity 需要继承 BaseActivity
  2. Fragment 需要继承 BaseFragment
  3. OptionsScannerActivity 为二维码扫描页面
  4. PhotoListActivity 为图片选择页面
  5. JSONCallBack 为网络请求回调
  6. MainHandler 为配合网络请求回调处理 UI
  7. com.soul.dj.util.http.json.Json 接口返回顶层封装 result_code 接口结果code result_message 接口结果信息 result 返回的对象 对应字段可按需求修改

使用说明

  1. sendHttp(String url, okhttp3.MediaType mediaype, Map<String,Object> paramsMap, JSONCallBack callback); 此方法为普通网络请求方法,mediaype 为com.soul.dj.util.http.MediaType 中的值,如有需求可自行添加

    JSONCallBack(Object context, String tag, Class class1) class1 为Json 中result 的类型Map,String,List 等

  2. sendHttpFiles(String url, Map<String,Object> paramsMap,String fileKey, List fileList, JSONCallBack callback); 此方法为多文件上传,paramsMap 为参数,fileKey 为文件接收参数名,fileList 为多文件列表,

  3. onAjaxFail(String code, String title,String str, String tag); 此方法为借口返回失败是调用

  4. onAjaxOK(Object result, String tag); 此方法为接口返回成功后调用

码云特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. 码云官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
  4. GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
  5. 码云官方提供的使用手册 https://gitee.com/help
  6. 码云封面人物是一档用来展示码云会员风采的栏目 https://gitee.com/gitee-stars/
The MIT License (MIT) Copyright (c) 2018 yhbsoul Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

android Android 基础框架 开发基础 展开 收起
Android
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Android
1
https://gitee.com/yhbsoul/baseAndroid.git
git@gitee.com:yhbsoul/baseAndroid.git
yhbsoul
baseAndroid
Android开发基础框架
master

搜索帮助

14c37bed 8189591 565d56ea 8189591