EventBus学习与进阶

初次看到这个库,觉得有点似曾相识,自己目前在用的一种通信方式恰恰拥有这个库的简单功能,上手很快。
github地址:https://github.com/greenrobot/EventBus
文档写的太简单,有大神总结好的使用方法和翻译如下:
快速Android开发系列通信篇之EventBus
EventBus使用详解(一)——初步使用EventBus
EventBus使用详解(二)——EventBus使用进阶
Android EventBus源码解析 带你深入理解EventBus
下面写点自己的一些学习过程,自己做个记录,顺便学习下别人怎么开源和怎么写介绍之类的,还有补补英文,大家不用看,上面几个链接里,大神写的很好了。
首先看了下官网:http://greenrobot.org/eventbus/
这个开源项目是德国慕尼黑的greenrobot团队做的。
EventBus is an open-source library for Android using the publisher/subscriber pattern for loose coupling. EventBus enables central communication to decoupled classes with just a few lines of code – simplifying the code, removing dependencies, and speeding up app development.
使用发布-订阅模式用来解耦代码的一个开源库,目的就是解耦和加速app开发。
EventBus: Events for Android

猜你喜欢

转载自blog.csdn.net/mengliluohua_151/article/details/51942029