I have Two Fragments, for example - FragmentA and FragmentB
In FragmentA I have multiple ImageButtons, In FragmentB I have a TextView
What I want to do is, when I click on any ImageButton in FragmentA then I want to assign a particular text to TextView in FragmentB.
For Example:-
If I click on Image Button 1 in the FragmentA then the text in FragmentB should be "Hello Jane"
If I click on Image Button 2 in the FragmentA then the text in FragmentB should be "Hello Foster"
and so on...
How to do this in Kotlin. Please Help me.