Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change foreground and background color of 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.

enter image description here

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.

like image 397
Kuls Avatar asked Mar 09 '16 12:03

Kuls


1 Answers

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.

like image 198
R Rifa Fauzi Komara Avatar answered Sep 22 '22 06:09

R Rifa Fauzi Komara