android - Add second title to navitation drawer -



android - Add second title to navitation drawer -

i have navigation drawer , want add together sec title using code

i know using code can add together first title

view header = view.inflate(this, r.layout.aaaaaaa, null); mdrawerlist.addheaderview(header, null, false);

but not understand how add together new sec title ...

example: "recent labels"

so do:

datalist = new arraylist<draweritem>(); mdrawerlayout = (drawerlayout) findviewbyid(r.id.drawer_layout); mdrawerlist = (listview) findviewbyid(r.id.left_drawer); adapter = new customdraweradapter(this, r.layout.aaaaaaaaaaaaaa, datalist); view header = view.inflate(this, r.layout.header, null); mdrawerlist.addheaderview(header, null, false); mdrawerlist.setadapter(adapter);// cannot add together sec title datalist.add(new draweritem("one ",r.drawable.aa)); datalist.add(new draweritem("two",r.drawable.aa)); //how add together new title????

that's nil sectioned listview defining custom adapter. larn , implement listview tips & tricks #2: sectioning listview

android view navigation-drawer drawerlayout

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -