I just started working with Fragment. At the moment, I am getting confused here. I chose a platform from Android Studio. There is a list in the left side. What I want to do is that everytime, when I clicked to an item in the list, the contain should be updated.
My problem is that I cannot know when which fragment is loaded everytime when I clicked to an item in the list. Is there any way to know the fragment id. For example, if fragment 1 is load, I will display an imageview, but if fragment 2 is loaded, I will have a checkbox in the main activity.
Cheers,