I need a navigational drawer that contains the fragments as data items
I need a navigational drawer that contains the fragments as data items. I need those fragment to contains some text views or scrollview etc and those fragments should contains different types of text views and scroll views. The main thing is those fragment should be independent from one another and each text view in fragment should contains an onclick listener. I need coding and mainly for those text views in fragments with on click listener to create another activity. Pls anyone help me
https://github.com/zaifrun/NavigationDrawer2 Refer this one ????
Hi Krishnan, not sure if fragments inside navigation drawer is a good design choice. You could have any type of view including text views and scroll views inside the navigation drawer layout with out having to implement it as fragments. In case you need fragments only, then specify frame layout as containers in the navigation drawer layout file and attach the fragments from your activity oncreate.