[Solved] How to implement on click in cardview + recycler view with firebase?


please take a look at my snipshed code, in my case i use this way to implement setonlclick in recycleview item and send value to other activity

holder.setName(userName);
                    holder.setUserImage(userThumb, getContext());

                    holder.mView.setOnClickListener(new View.OnClickListener() {
                        @Override
                        public void onClick(View view) {
                            Intent chatIntent = new Intent(getContext(), Tampung_chatActivity.class);
                            chatIntent.putExtra("user_id", list_user_id);
                            chatIntent.putExtra("user_name", userName);
                            startActivity(chatIntent);
                        }
                    });

full code you can see at here :
full snipshed code implement onclick with recycleview and firebase

solved How to implement on click in cardview + recycler view with firebase?