Code Monkey home page Code Monkey logo

framework_android's Introduction

Framework_Android

Android架构搭建,根据腾讯QMUI_Android框架搭建,适用于快速运用到项目中去。 由于本项目与自己的后台服务器搭配使用,在使用时请改成自己的服务器IP地址。

感谢QMUI_Android团队为广大开发者提供的 UI 库 ,官网:http://qmuiteam.com/android

(随缘更新)

开发日志 —— 2

  • 添加并重写OkGo中的JsonCallback,添加JsonConvert类,对后台baseJson进行统一管理。 每个项目请求后台返回的json格式都有所不同,请根据实际项目需求修改JsonConvert类。 本项目同时提供了两种json格式进行解析操作:

    1. json格式为{code:0,msg:"成功",result:{…}}
      根据后台返回的code数值来判断返回的数据是否成功。code:0表示成功返回,code:101 等其他标识表示返回失败,并返回失败的msg
    2. json格式为{success:true,msg:"成功",result:{…}}
      根据后台返回的success数值来判断返回的数据是否成功。success:true表示成功返回,success:false 表示返回失败,并返回失败的msg
  • 实现启动和登录功能,在app启动时通过后台服务器判断token是否失效,如果没有token或者失效,则跳转到登录页面,反之直接跳转到主界面。

  • 添加测试用户信息开关,并且在gradle配置只能在debug版本使用,当编译成release正式版时,关闭测试用户信息开关。

  • 添加SPConstants,统一管理SharedPreferences的key。

开发日志 —— 1

  • 根据QMUI搭建viewPager+fragment+Navigation主页,添加Android7.0 provider
  • 添加登录界面,界面根据软键盘弹出自适应上下移动,添加文件相关工具类
  • 添加OkGo并配置框架,添加Logger框架,添加内存泄漏检测框架,base类添加EasyPermission权限管理框架。

项目截图(持续更新)

登录界面 主页

framework_android's People

Contributors

fadedyu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.