i have add this header with the use of following code :
LayoutInflater inflater = getLayoutInflater();
ViewGroup mTop = (ViewGroup) inflater.inflate(
R.layout.drawer_list_footer_view, mDrawerList, false);
mDrawerList.addHeaderView(mTop, null, false);
and this is how i bind the list view :
navDrawerItems.add(new NavDrawerItem(navMenuTitles[0], navMenuIcons
.getResourceId(0, -1)));
// Find People
navDrawerItems.add(new NavDrawerItem(navMenuTitles[1], navMenuIcons
.getResourceId(1, -1)));
....
so how can i add mutliple title for listview ?
Aucun commentaire:
Enregistrer un commentaire