注册:
EventBus.getDefault().register(this);
取消注册
EventBus.getDefault().unregister(this);
方法使用
@Subscribe
public void getmasg(String mag){
Toast.makeText(MainActivity.this,"点击的是:"+mag,Toast.LENGTH_LONG).show();
}
使用eventbus
EventBus.getDefault().post(pzshBeanList.get(0).getCommodityList().get(i).getCommodityName());