You can use this single line to get the reference of search icon :((View)findViewById(R.id.place_autocomplete_search_button)).setVisibility(View.GONE);
and this line to get the reference of EditText: ((EditText)findViewById(R.id.place_autocomplete_search_input))