I have a tab view with two fragments. Those two fragments contain a recycler view with cards. Each card in both fragments had a button. Clicking on fragment 1's button should open the fragment 2 as a separate page and vice-versa. I am struggling to find a method to implement this without making every too complex and tightly coupled.
This is fragment one with its own Adapter.
Clicking on that SELECT DONOR button in Donees page should open donor fragment in a new page where the user will be able to assign a donor for the selected donee.
So I have two needs here
1) To start a fragment from a fragment
2) To Keep track from which Donee the new donor page was opened so that I can assign a donor for that specific donee.
I hope this is understandable.
so far I have tried LocalBroadcast and FragmentManager but its hard to keep track of what I'm doing with the code.
Can you guys suggest a better technique to achieve this ?