Change foreground and background color of Place Autocomplete Fragment

感情迁移 提交于 2019-12-03 12:21:55

If you place that fragment in another layout you are able to modify as you want. Make nested such: <...CardView...> <..Your Fragment...>

The logo issue, since you decided to use all autonomous API instead of creating your own layout and integrating, it comes up by default which will stay stable there. Implement your view and use the Places API data, then you be able to make some modifications as changing place. BUT you HAVE TO display the logo in that case of-course.

Check this link also explains attributions of Places API: https://developers.google.com/places/android-api/attributions

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!