Is there a way to pin an address to the top of a placeautocomplete search for an android app?
This example is in JS/HTML, but I couldn't find anything for native android studio.
Is there a way to pin an address to the top of a placeautocomplete search for an android app?
This example is in JS/HTML, but I couldn't find anything for native android studio.
Copyright © 2021 Jogjafile Inc.
Anyway you can use customized
AutoCompleteTextViewlike in this article. You should add your custom place name inprotected void publishResults(CharSequence constraint, FilterResults results)just after filling places list fromresults.values;fromTask<AutocompletePredictionBufferResponse>.So, for custom place name
"-> Custom place <-"withMainActivity.javalike:and
activity_main.xml(NB! according to Usage Limits:) like:
when you enter letter "a" to text field you should get something like that:
And don't forget to activate Places SDK on Google Cloud Platform Console.