更改位置自动完成片段的前景色和背景色 [英] Change foreground and background color of Place Autocomplete Fragment
本文介绍了更改位置自动完成片段的前景色和背景色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用了 Google Place API ,并集成了 Place Autocomplete Fragment .我可以更改其前景或背景颜色吗?我的设备似乎有点沉闷.
I've used Google Place API and integrated Place Autocomplete Fragment. Can i change its Foreground or background color. It seems bit dull in my device.
我还想知道是否可以在屏幕底部设置"由Google提供支持"的句子.我看到了一些底部有应用程序.
And I also want to know that can I set "powered by Google" sentence to at the bottom part of the screen. I have seen some application which have it on bottom.
推荐答案
您只需在Java中使用此代码即可.
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.
这篇关于更改位置自动完成片段的前景色和背景色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文