-1

I have a Recycler View and when I click an item I open a fragment with information about that item.

Well I have the problem that even open the fragment, I can keep clicking to the other elements of the list.

As I fix, you can be?

The problema is there?

getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, fragment).addToBackStack(String.valueOf(fragment)).commit();

Maria P
  • 21
  • 2

1 Answers1

0

In your activity set flag isOpened. And set it true when you click the item of RecyclerView. Then when you click other items check: if (!isOpened) {not allow to open fragment}