android 多个mv布局,GitHub - YuraZhang/MVPArt: A new Android MVP architecture (此框架旨在解决传统 MVP 类和接口太多, 并且 ...

MVPArt

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4a63656e7465722d76322e352e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f7472617669732d63692e6f72672f4a65737359616e436f64696e672f4d56504172742e7376673f6272616e63683d636f6d706c657465

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4150492d31342532422d626c75652e7376673f7374796c653d666c61742d737175617265

687474703a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d417061636865253230322e302d626c75652e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d4a65737359616e2d6f72616e67652e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f51512545372542452541342d3435353835303336352532302537432532303330313733333237382d6f72616e67652e7376673f7374796c653d666c61742d737175617265

A New Android MVP Architecture

This framework is designed to solve the traditional MVP class and interface too much, and Presenter and View communicate too complicated through the interface, reuse Presenter too much cost

Architectural

2c315a024e8d7859ab795c4da09f0ee1.png

Introduction

Master branch is a simple framework without network layer, mainly through the four Demo introduced the framework of the ideas, features and use of methods, compact and flexible has a set of existing framework but need to refactor For MVP structure of the project, but no matter which branch you are using is strongly recommended that you first look at Master branch Demo

Complete branch is a complete framework with a network layer, Retrofit as a network layer and use Dagger2 to manage all objects, mature and powerful for new projects

Notice

This framework is a lightweight framework, more suitable for small and medium-sized projects, large-scale projects please use MVPArms

Traditional MVP corresponds to a Presenter, and most Presenter has only one or two methods, which leads to the existence of a large number of very few tags Presenter, this framework is designed to solve the reuse Presenter need to achieve too many redundant interface method, encourage developers to write similar logic in a Presenter, constantly reuse Presenter, reduce a large number of class files

Of course, many different logic is written in a Presenter, although you can write a lot of classes, but behind the expansion is certainly not good, so the size of their own control, but for the outsourcing project is very useful

Download

implementation 'me.jessyan:art:2.5.0'

---------------------- 以下是扩展库 ----------------------

//想使用 Glide 请依赖 art-imageloader-glide 扩展库

implementation 'me.jessyan:art-imageloader-glide:2.5.0'

//想使用 AndroidAutoLayout 请依赖 art-autolayout 扩展库

implementation 'me.jessyan:art-autolayout:2.5.0'

About Me

License

Copyright 2017, jessyan

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值