How to remove search icon from PlaceAutocompleteFragment in Android

前端 未结 5 584
一整个雨季
一整个雨季 2021-01-14 03:45

I am using PlaceAutocompleteFragment to search places. Below is my xml code



        
5条回答
  •  耶瑟儿~
    2021-01-14 04:28

    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))

提交回复
热议问题