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
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
Post a Comment