java - How do I change the background of every single header (expandable listview)? -


i have expandable listview , want change background of every single header has. has 4 headers. how want look: enter image description here

how change background of 4 headers , add custom 'green arrow' it? main part right change background of headers, green arrow bonus answer :)

this how solved problem:

switch(groupposition){     case 0:         convertview.setbackground(this._context.getresources().getdrawable(r.drawable.light_blue));         break;     case 1:         convertview.setbackground(this._context.getresources().getdrawable(r.drawable.drugi_letniki_color));         break;     case 2:         convertview.setbackground(this._context.getresources().getdrawable(r.drawable.light_blue));         break;     case 3:         convertview.setbackground(this._context.getresources().getdrawable(r.drawable.cetrti_letniki_color));         break;     } 

groupposition integer variable getgroupview method


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -