Giter VIP home page Giter VIP logo

mvpframes's Introduction

MVPFrames

这是一个适用于大中小全能型AndroidMVP开发框架,核心**取自MVPArms,做了一些适合自己项目的修改 主要集成目前主流开源框架,涉及Dagger2、ButterKnife、Retrofit2、Glide、Gson等第三方库

Usage

  • 配置自定义Application必须继承BaseApplication,BaseApplication完成Http、图片、DB、日志管理等框架的初始化工作
  • 使用Activity、Fragment、ViewHolder、Service、Adapter需继承CommonActivity、CommonFragment、BaseViewHolder、BaseService、BaseAdapter来初始化MVP架构
  • 通过Application获取AppComponent里面的对象可直接使用
  • 简单功能及页面无需引入MVP

Features

  • 网络模块 使用Retrofit2,并通过Dagger2注入实例提供给开发者。Retrofit采用注解方式定义接口方便管理,极大的减少了请求代码和步骤,底层采用Okhttp
  • 图片模块 使用策略者模式,使用者只需替换三个类,就可以更换图片框架,默认使用Glide,通过AppComponent获取ImageLoader实例  
  • 数据库模块 选择适用于Android的GreenDAO框架,通过AppComponent获取DaoSession实例

Libraries

Feedback

Thanks

MVPArms
TODO-MVP
Nucleus

License

Copyright 2016-2017 DesignQu

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.

mvpframes's People

Contributors

rockyqu avatar

Watchers

James Cloos avatar  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.