android - open a Fragment by clicking on a recyclerview item
After a lot of searching i have solved this issue
So simplified version, here's my onBindViewHolder
MainActivity activity = (MainActivity) context;
activity.getSupportFragmentManager()
.beginTransaction()
.replace(R.id.content, fragment)
.addToBackStack(null).commit();
Hiç yorum yok:
Yorum Gönder