AutocompleteLocationAndroid
Cute library to implement PlaceAutocomplete in android based in jotaramirez90 AutocompleteLocation library.
First Steps
In your Project build.gradle you must have the following
In your App build.gradle you must have the following
Get a Google Maps API Key and enabled the Google Places API for Android (Add your API Key in values):
Add the AutocompleteLocation into the layout:
Set the listeners(All are optional for more comfort):
AutoCompleteText Listener:
Place Listener(When this listener is set, after selecting a prediction, the associated place is automatically searched):
Search Listener:
Limit results by Country:
Limit results by Bounds:
Get Place by Id:
Style it!
Attributes for custom AutocompleteLocation
- background_layout
- closeIcon