android - SearchView in Toolbar background same as toolbar -


i'm adding searchview within toolbar of app. when activated, search input text's background semi-transparent white. how make transparent? enter image description here

you can change background color when create searchview this:

searchview searchview = findviewbyid(r.id.searchview);  edittext edittext = (edittext)searchview.findviewbyid(context.getresources().getidentifier("android:id/search_src_text", null, null)); edittext.setbackgroundcolor(color.transparent);