I am trying to customize the searchview. i wanted to get rid of close icon in searchview. what i have done so far?
int closeId =android.support.v7.appcompat.R.id.search_close_btn;
ImageView close = (ImageView)mSearchView.findViewById(closeId);
close.setVisibility(View.GONE);
this code removes the close icon. But as soon as i start typing in editText it appears back in. How to permanently get rid of it?
close icon is remove when expanded searchView