0

I have a problem regarding to Android and MySQL Databse. I got the items from database to Android Activity in listview but i want that items in the Android Navigation Drawer. Please give me any suggestion or reference of web pages..

This ListView is in Activity

This ListView is in Activity

And I want those items in the below navigation drawer at the place of Item1, Item2, and so on..

Item List Category Thanks

Saq
  • 21
  • 4
  • You need to use custom drawer activity for this purpose – Vidhi Dave Feb 19 '18 at 11:36
  • Possible duplicate of [How to create a custom navigation drawer in android](https://stackoverflow.com/questions/21796209/how-to-create-a-custom-navigation-drawer-in-android) – Vidhi Dave Feb 19 '18 at 11:37
  • 1
    Check this link http://www.codexpedia.com/android/android-custom-navigation-drawer-example/ – Vidhi Dave Feb 19 '18 at 11:37
  • Thanks Vishva, but I need Fetching and adding programming logic to navigation drawer. Its easy to fetch and show in Activity but I want solution for Adding in Drawer. I updated my question, added 2nd Image – Saq Feb 19 '18 at 12:14
  • So this link has same example. just where it is using static data for listview replace that with your arraylist – Vidhi Dave Feb 19 '18 at 12:16
  • in this line `ItemArrayAdapter itemArrayAdapter = new ItemArrayAdapter(this, R.layout.list_item, numbers);` replace number with your arraylist – Vidhi Dave Feb 19 '18 at 12:17
  • Ok, thanks again. :) – Saq Feb 19 '18 at 12:17
  • are you there Vishva?? – Saq Mar 08 '18 at 11:01
  • 1
    I got error in `drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, R.drawable.ic_menu, R.string.drawer_open, R.string.drawer_close)` this line which shows where we write down R.drawable.ic_menu ,instead of this we have to use widget.Toolbar – Saq Mar 08 '18 at 11:06
  • Sorry don't know much about this actually. I don't have good experience with navigation drawers :( :( Try to ask a question with all the details properly. what you have tried and error and link you prefered all that. you will get answer by someone – Vidhi Dave Mar 08 '18 at 11:10
  • 1
    ok thanks.. i ll create toolbar then it may be solved. – Saq Mar 08 '18 at 11:11
  • btw are you developer at stackoverflow?? – Saq Mar 08 '18 at 11:12
  • sorry, I mean , R u working with stackoverflow team?? bcoz everytime I post question , I get ur reply very fast.. – Saq Mar 08 '18 at 11:20
  • That is good for Us :) – Saq Mar 08 '18 at 12:10
  • 1
    and i add custom toolbar to the program and its working fine.. – Saq Mar 08 '18 at 12:11

0 Answers0