Replacing A Fragment From Inside A Fragment
I read online, that to call another fragment, to take up the FrameLayout, you need to create an interface that talks to the activity and when the button clicked the function inside
Solution 1:
Fragments are part of the Activity and fragment should be hosted through their parent activities as stated by google in Android developers docs. You can refer this link:- https://developer.android.com/training/basics/fragments/communicating
Post a Comment for "Replacing A Fragment From Inside A Fragment"