我試圖製作一個應用程序,它可以使用戶通過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拍攝的快照,其中會出現搜索菜單:
下面是從小蜜Redmii 2拍攝的快照中,它不會出現:
它也沒有出現,Zenfone C,和S5,索尼超C5 ..
我已經從上到下遵循Google的教程,但仍然沒有找到任何解決方案,因爲它突然發生。
有沒有人在這個困境之前?如果是,任何解決方案?