You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use greenbot eventbus. implementation 'org.greenrobot:eventbus:3.0.0'
Then in your view holder bindData() SingleItemRootLayout rootLayout = view.findViewById(R.id.contact_row); rootLayout.setOnClickListener(v -> EventBus.getDefault().post(Model));
In your activity onCreate() just have Eventbus.getDefault().register(this)
then create a private method in your activity to handle the onclick event @Subscribe(threadMode = ThreadMode.MAIN) public fun onRowClicked(pModel: OrderModel) { Toast.makeText(this, "Name: " + pModel.id + " Surname: " + pModel.createdAt, Toast.LENGTH_SHORT).show(); }
No description provided.
The text was updated successfully, but these errors were encountered: