Reputation: 115
I want to create a navigation drawer dynamically. I fetch the strings from the database and add to a string list.
JSONArray jArray = new JSONArray(result);
JSONObject json_data;
for (int i = 0; i < jArray.length(); i++) {
json_data = jArray.getJSONObject(i);
String toAppend = json_data.getString("name");
names.add(toAppend);
}
What should I do for the next step for adding in ListView navigation drawer?
Upvotes: 2
Views: 4787
Reputation: 4377
You can get help from these links to know what steps to follow-
http://hmkcode.com/android-creating-a-navigation-drawer/ http://www.coderzheaven.com/2013/06/28/navigation-drawer-android/
Upvotes: 1