How do you load fragment into Activity?
1.Create a layout for your fragment
2.Implement a fragment by defining a class for your fragment code, by extending Fragment class.
3.Return your fragment layout from your fragment's life cycle funciton onCreateView()
4.Define an xml file for your activity, which has <fragment> tag, which will contain your fragment class
Now run your program, once android sees <fragment> tag in your activity's layout file, it will go and create object for your fragment and loads it into
Back To Top