Android ListView exclude section headers from being highlighted -


i have implemented stickylistheaderslistview library github. used multichoicemodelistener selecting items , copy or delete selected elements seen below

i don't want section headers (date field) highlighted. there way disable behaviour.

this question originated last unanswered question. refer link custom array adapter code

enter image description here

change background color of view using view.setbackgroundcolor(); method.

in getheaderview() method add line

convertview.setbackgroundcolor(your color)

  @override     public view getheaderview(int position, view convertview, viewgroup parent) {         headerviewholder holder;          if (convertview == null) {            holder = new headerviewholder();            convertview = minflater.inflate(r.layout.date_separator, parent, false);              convertview.setbackgroundcolor(your color);// change here           }                           return convertview;     } 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -