If I have a fragment object, is there a way to get notified about the life cycle methods of this fragment?
One of the possible ways to do this is to implement this mechanism in my fragment, and the fragment notifies listeners, but this requires template code, which I need to add in all methods of the fragment. Is there any support for this at the Android platform level?
source share