Change foreground and background color of Place Autocomplete Fragment

前端 未结 2 828
旧巷少年郎
旧巷少年郎 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条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-13 12:06

    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

提交回复
热议问题