问题
I am trying to make an app which can enable user to "check-in" at a certain location through Google Place Picker.
I use the code from Google :
PlacePicker.IntentBuilder intentBuilder = new PlacePicker.IntentBuilder();
intentBuilder.setLatLngBounds(DEFAULT_LOCATION);
Intent intent = intentBuilder.build(LocationActivity.this);
startActivityForResult(intent, PLACE_PICKER_REQUEST);
The problem is, the search box doesn't appear in some devices but appears in a certain device.
Here's a snapshot taken from Note 5, in which the search menu appears :
And here's a snapshot taken from Xiaomi Redmii 2 in which it doesn't appear :
It also doesn't appear in, Zenfone C, and S5, Sony Ultra C5..
I've followed Google's tutorial from top to bottom but still hasn't found any solution to this as it happen all of a sudden.
Have anybody been in this predicament before? If yes, any solution??
回答1:
It is an issue with the latest version of Google Play Services. Any devices that have updated to version 9.0.83 are affected.
See my post regarding this issue: Android PlacePicker no longer has Search icon after updating to Google Play Services 9.0.83
See these bug reports from the Google Maps API bug and feature website: Bug: Search Icon not visible in the latest play service update (Version:9.0.83) ----- Bug: Place Picker not showing search icon. ----- PlacePicker search icon is gone after updating to Google Play Services 9.0.83
来源:https://stackoverflow.com/questions/37313609/android-google-place-picker-does-not-display-search-box