I basically followed some tutorials on how to create a fragment list and how to make use of a navigation drawer. Here is what those elements look like.
ListFragment: https://youtu.be/GgUKTzMmxIs
NavigationDrawer: https://youtu.be/6SrKOBV_hx8
The problem is that I don't want a set list of elements on my navigation drawer I want it to be dinamic so I can retrieve objects from an API, list those objects on my navigation drawer and be able to see that list of objects and scroll through it. Navigation drawer has a property called menu which can use a menu xml resoruce file to fill itself with elements. What I'm trying to do is basically that but with a ListFragment instead of a menu.xml but I don't know how to do it.
How to set a FragmentList in a NavigationDrawer? Follow my code you easily create set of Fragment in NavigationDrawer
> manu.XML:
i have create 3 tab for 3 Fragment.
create fragment do you need. MainActivity.class
public class MainActivity extends AppCompatActivity {
activity_main.XML