EventBusExample:EventBus的示例

时间:2021-06-29 14:42:24
【文件属性】:
文件名称:EventBusExample:EventBus的示例
文件大小:293KB
文件格式:ZIP
更新时间:2021-06-29 14:42:24
Java EventBusExample 这是一个EventBus简单示例demo 在MainActivity中添加register和unregister; 事件的响应方法需要以“onEvent”开头,“MainThread”是表明执行在主线程中。 @Override protected void onResume() { super.onResume(); EventBus.getDefault().register(this); } @Override protected void onStop() { super.onStop(); EventBus.getDefault().unregister(this); } public void onEventMainThread(Se
【文件预览】:
EventBusExample-master
----res()
--------drawable-ldpi()
--------drawable-hdpi()
--------values()
--------drawable-mdpi()
--------layout()
----proguard-project.txt(781B)
----image()
--------image2.png(147KB)
--------image1.png(111KB)
----ant.properties(698B)
----build.xml(4KB)
----src()
--------com()
----.project(851B)
----.classpath(475B)
----.gitignore(30B)
----project.properties(563B)
----README.md(1KB)
----AndroidManifest.xml(882B)
----libs()
--------eventbus.jar(44KB)

网友评论