I have the following structure: I want to access either Fragment1 or Fragment2 from ChildFragment class, but when I call parentFragment it returns ...
I have the following structure: I want to access either Fragment1 or Fragment2 from ChildFragment class, but when I call parentFragment it returns ...
I am using bottom navigation bar dan fragment in my project. When it moved from one to another fragment, I dont want to lose the state or data How can ...
I want to refresh my fragment by clicking on its button. How to do it? I try to do it like this but old version of fragment appears on the top of the ...
I need reload fragment after this process Go from Fragment A to Fragment B and go from Fragment B to Fragment C, then do the registration process, and ...
This is my first time using Fragments in Android and I'm trying to create a spinner and fill it using an ArrayList. My app has 3 buttons on the main s ...
I have written code that fetches a JSON object from a remote endpoint. For this question, I am passing in a mock object which is an array of objects. ...
I'm trying to start a fragment from the toolbar (the toolbar is in a fragment too) but it's not starting, that was not the case when it was in the mai ...
I'm new to the concept of Fragments In the video I was watching, they used this piece of code: To create a Fragment via java. In findFragmentB ...
So I am trying to switch to another fragment by clicking one of the tabs in my BottomNavigationView but I keep getting NullPointer Exception. I tried ...
I am including a fragment in a row for a RecyclerView - I know it is not the most recommended thing to do, but it is not used much and I would like it ...
I have an activity (main) with three fragments (first, second and third). I included the 3 fragments in my activity (activity_main.xml) by using <i ...
I encountered to a problem related to Activity's getFragmentManager() incossitency with androidx.FragmentManager. So I have the following method: ...
I am not a Java coder but trying to build an app while trying to learn Java along the way. I am trying to add 2 fragments one is the login fragment an ...
I'm using Kotlin for development. When I reached the official Android tutorial's fragment section, I came across the supportFragmentManager. Which is ...