EventBus为Github上的开源项目,地址:https://github.com/greenrobot/EventBus 疑问:1. 现在都是Android Studio创建的项目,如何导入这些项目(对工具不熟悉);2. 如何得到这些开源项目的.jar包? EventBus概念分析(获取感性认 ...
分类:
移动开发 时间:
2017-02-15 00:06:40
阅读次数:
259
1 项目根build.gradle classpath 'org.greenrobot:greendao-gradle-plugin:3.1.0' 2 app中build.gradle apply plugin:'org.greenrobot.greendao' dependencies{ comp ...
分类:
移动开发 时间:
2016-12-28 09:46:43
阅读次数:
396
1.greendao的引入在project 目录下的build.gradle中添加插件包 dependencies { classpath 'com.android.tools.build:gradle:2.2.0' classpath 'org.greenrobot:greendao-gradle ...
分类:
数据库 时间:
2016-12-19 19:19:45
阅读次数:
263
1,拉别人的代码, 比如https://github.com/greenrobot/EventBus 这个库,先用浏览器访问,然后git账号登陆,点击fock到自己的库里 点击Fork 然后打开GitHub windows端程序,点击+号: 红箭头会有个对勾Clone 按钮,点击这个按钮,选择存到本 ...
classpath 'org.greenrobot:greendao-gradle-plugin:3.0.0' 编译之后进行下一步 2. 在 app 文件夹的build.gradle 文件中配置 apply plugin: 'org.greenrobot.greendao' compile 'org ...
分类:
其他好文 时间:
2016-10-20 11:41:26
阅读次数:
214
随着RxJava 的火爆,RxBus 相对来说比较配套,我不知道还会不会用eventBus 但是谁知道呢,总结一下备忘还是不错的选择。 http://greenrobot.org/eventbus/ 使用eventBus的好处 EventBus:活动为Android EventBus是使用Andro ...
分类:
其他好文 时间:
2016-09-28 02:21:27
阅读次数:
154
以前的几篇文章简单的介绍了一下UI线程和子线程之间的线程通信利器Handler,以及顺便介绍了一下SyncTask和HeadlerThread。这里介绍另一线程通信利器EventBus。 EventBus是一个开源组件。https://github.com/greenrobot/EventBus,通 ...
分类:
其他好文 时间:
2016-08-06 21:53:59
阅读次数:
206
EventBus GitHub 上的地址 https://github.com/greenrobot/EventBus EventBus干的事情可以概括来说 别人可以根据某一个事件订阅我,但是他得去实现如果我发生了这个event,我该去怎么做。所以发生这个事件的时候,所有的订阅了这个事件的订阅者都应 ...
分类:
其他好文 时间:
2016-08-05 16:09:58
阅读次数:
108
# EventBus3.0简介
`EventBus`是greenrobot出品的一个用于Android中事件发布/订阅的库。以前传递对象可能通过接口、广播、文件等等,尤其像同一个`Activity`两个`Fragment`之间采用接口传递对象,十分的麻烦,而且耦合度较高。使用`EventBus`之后,这些将不再是问题。盗用GiHub上EventBus的一张图。...
分类:
移动开发 时间:
2016-07-10 21:56:21
阅读次数:
380
先润润嗓子,听我细细道来: 今天我们来介绍一款性能非常好的orm数据库框架GreenDao,相信大家一定对它有所耳闻,或者已经在项目中在使用它了,虽然我在去年就开始使用这款框架,但是一直没有做过系统的整理和梳理,有些地方也是含糊不清,今天就和大家一起来揭开GreenDao的神秘面纱。
GreenDao github地址:https://github.com/greenrobot/greenDAO
G...
分类:
移动开发 时间:
2016-07-06 16:37:18
阅读次数:
341