Change foreground and background color of Place Autocomplete Fragment

前端 未结 2 825
旧巷少年郎
旧巷少年郎 2021-02-13 11:11

I\'ve used Google Place API and integrated Place Autocomplete Fragment. Can i change its Foreground or background color. It seems bit dull in m

2条回答
  •  -上瘾入骨i
    2021-02-13 12:02

    You just use this code in java.

    placeAutoComplete.getView().setBackgroundColor(Color.WHITE);
    

    You free to change the color of the background Place Autocomplete Fragment, in the example I use color WHITE for the background.

提交回复
热议问题