android - Remove SearchView search voice button line -


thanks other related posts regarding searchview customisation able customise searchview point:

enter image description here

now i'm trying add voice search , able change voice button background resource:

int searchvoiceiconid = searchplate.getcontext().getresources().getidentifier("android:id/search_voice_btn", null, null); imageview searchvoiceicon = (imageview) searchview.findviewbyid(searchvoiceiconid); searchvoiceicon.setimageresource(r.drawable.ic_action_mic); searchvoiceicon.setbackgroundcolor(color.transparent); 

however, can't seem rid of line under voice search button.

enter image description here

any suggestions????

thanks

code:

((linearlayout)search.findviewbyid(r.id.search_voice_btn).getparent()).setbackgroundcolor(color.transparent); 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -