2016-05-19 90 views
2

我試圖製作一個應用程序,它可以使用戶通過Google Place Picker在某個位置「登記」。Android - Google Place Picker不顯示搜索框

我使用的代碼來自谷歌:

PlacePicker.IntentBuilder intentBuilder = new PlacePicker.IntentBuilder(); 
intentBuilder.setLatLngBounds(DEFAULT_LOCATION); 
Intent intent = intentBuilder.build(LocationActivity.this); 
startActivityForResult(intent, PLACE_PICKER_REQUEST); 

的問題是,搜索框不會出現在一些設備,但似乎在一定的設備。

下面是從注5拍攝的快照,其中會出現搜索菜單:

Search Menu appears

下面是從小蜜Redmii 2拍攝的快照中,它不會出現:

Search Menu gone

它也沒有出現,Zenfone C,和S5,索尼超C5 ..

我已經從上到下遵循Google的教程,但仍然沒有找到任何解決方案,因爲它突然發生。

有沒有人在這個困境之前?如果是,任何解決方案?

回答

1

這是最新版Google Play服務的問題。任何已更新到版本9.0.83的設備都會受到影響。

見我就這個問題後:Android PlacePicker no longer has Search icon after updating to Google Play Services 9.0.83

請參閱從谷歌地圖API的bug和功能的網站,這些錯誤報告: 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

相關問題