Code Monkey home page Code Monkey logo

androidarchitecture's Introduction

说明

这是一个Android[MVC & MVP & MVVM & 组件化]架构演示如何搭建的项目,仅供参考,Java & Kotlin都有案例,Kotlin搭建的架构放在了app module中了,Java部分放在了java module中了。

MVC

具体笔者不想多做解释,看代码吧

MVP

无论是Kotlin还是Java部分,均采用MVP+Dagger2+Retrofit+RxJava进行构建,而且利用Jetpack的LifeCycle组件让MVP具备生命周期感知功能,防止不必要的内存消耗和泄漏等

2020-12-28 加入Kotlin+MVP+Dagger2+Retrofit+协程进行构建

MVVM

有传统MVVM架构,以及新的结合Jet-pack的ViewModel & LiveData搭建的MVVM架构

组件化

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.