Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ViewHolder implements View.OnClickListener
- buttonMap.setOnClickListener(this);
- @Override
- public void onClick(View v) {
- AppCompatActivity activity = (AppCompatActivity) v.getContext();
- int position = getAdapterPosition();
- Fragment myFragment_1 = new myFragment_1 ();
- Bundle bundle = new Bundle();
- bundle.putString("_thread", _thread);
- myFragment_1.setArguments(bundle);
- activity.getSupportFragmentManager().beginTransaction()
- .add(R.id.container, myFragment_1)
- .addToBackStack(null)
- .commit();
Add Comment
Please, Sign In to add comment