java - Expandable List View items without Group -
i'm trying implement expandable list view navigation drawer menu. wondering if there way make 1 of items in menu expand? example, opening navigation drawer menu yield
a
b
c
->c1
->c2
->c3
d
so, c group while a, b, , d singular items don't have children. have insight this?
you can that. map child "c" c1, c2, etc. , replace
@override public int getchildrencount(int groupposition) { return this._listdatachild.get(this._listdataheader.get(groupposition)) .size(); }
this in expandablelistadapter with
@override public int getchildrencount(int groupposition) { try { return this._listdatachild.get(this._listdataheader.get(groupposition)) .size(); } catch (nullpointerexception e) { e.printstacktrace(); return 0; } }
this return 0 child count a, b, d etc.
Comments
Post a Comment