eventbus3.0jar
eventbus-3.0.0-beta1.jar
解压即可
eventbus-3.0.0
eventbus开源jar包EventBus能够简化各组件间的通信,让我们的代码书写变得简单,能有效的分离事件发送方和接收方(也就是解耦的意思),能避免复杂和容易出错的依赖性和生命周期问题。
EventBus基本案例,远程控制activity的UI变化,代替广播去控制.
此代码是关于EventBus的一个小案例
EventBus的传值
由greenrobot 组织贡献(该组织还贡献了greenDAO),一个Android事件发布/订阅轻量级框架, 功能:通过解耦发布者和订阅者简化Android事件传递 EventBus可以代替And
ThreadMode提供了5种mode,我觉得在只用其中的MAIN和BACKGROUD就可以了1.ThreadMode:POSTING事件处理和post在同一个线程中,如果是UI线程注意耗时操作。2.