'Android - Get current fragment
This question has been ask a lot, but i have not seen a recent answer.
This in contained in my main activity :
<androidx.fragment.app.FragmentContainerView
android:id="@+id/fragment_container_view"
android:name="androidx.navigation.fragment.NavHostFragment"
app:navGraph="@navigation/navigation_map" />
I have tried
-> The fragment manager is deprecated
-> The support fragment manager does not work
I would like to know what is the fragment loaded in my FragmentContainerView
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


