目前只知道。
btnsearch.setIconifiedByDefault(false);//默认编辑框为展开
btnsearch.setSubmitButtonEnabled(true);//默认有提交按钮
https://zhidao.baidu.com/question/2056225668986278067.html
这个方法是能改变搜索框外面的图标,,但是我是想让他消失,怎么弄
这里怎样才能让这个图标消失呢
int search_mag_icon_id = btnsearch.getContext().getResources().getIdentifier("android:id/search_mag_icon", null, null);
ImageView mSearchViewIcon = (ImageView) btnsearch.findViewById(search_mag_icon_id);
mSearchViewIcon.setImageResource(R.drawable.white);