GithubHelp home page GithubHelp logo

android_architecture's Introduction

##Android_Architecture


这是楼主作死的产物,有兴趣的可以研究下 这是套结合了Rxjava , Dagger2 , Retrolambda , Retrofit , OkHttp , Androidannotations , Gson 等上述所有第三方库包,整合并且适配Material Design设计风格的一整套Android代码编写框架,对,你没听错,是框架

主要核心部分是 RxjavaDagger2 这两个库包的运用,楼主非常推荐各位去研究下Rxjava这个东西,这是个非常神奇的代码库,在看这个东西的文档介绍的时候,非常多的人评价这套代码为"万能的代码",具体内容请戳(https://github.com/ReactiveX/RxJava)。 Dagger2是源于Dagger这套库包的衍生,Dagger是目前最流行的专为Android设计的依赖注入函数库,Androidannotations仅次于其后。具体内容请戳(https://github.com/google/dagger)

然后研究那么多,楼主的最终目的是希望能构建出一套松耦合的Andorid代码框架,楼主希望楼主能在以后的代码编写中,只是简单的替换一些模块,或者类等,然后就达到项目变更的可能(虽然感觉这像是在做梦,但是至少这次的代码研究,让我看到了那么定点希望)


这次上传的项目是套纯代码的项目,功能上就是简单的网络访问获取List数据,并显示。 从功能角度上,这其实并不是什么很值得炫耀的事儿,但是代码层面上我相信第一次看这套代码的人都会有非常多的疑问和不解,而且这些疑问往往不是三言两语就能解释清楚的。 比方说: * 你可能找不到一个类的实现在哪里,但是他却被正常的调用 * 你可能会问为什么project会被分成3个Module * 网络访问的实例去哪儿 * 为什么网络访问就一行代码 * c ->{} 又是什么东西 等等

如果要把这整套代码中所用到的所有知识点一一列出来,估计我这文章我得写一阵子了…… 楼主挺懒 所以,自己去研究吧 2333333333333333

android_architecture's People

Contributors

crazyclownsola avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wherego

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.