【问题标题】:Android - Google Place Picker does not display search boxAndroid - Google Place Picker 不显示搜索框
【发布时间】:2016-05-19 03:44:09
【问题描述】:

我正在尝试制作一个应用程序,它可以让用户通过 Google Place Picker 在某个位置“签到”。

我使用来自 Google 的代码:

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

问题是,搜索框没有出现在某些设备上,而是出现在某个设备上。

这是从 Note 5 中截取的快照,其中出现了搜索菜单:

这是从小米红米 2 拍摄的快照,其中没有出现:

它也没有出现在 Zenfone C、S5、Sony Ultra C5..

我从头到尾都按照 Google 的教程进行操作,但仍然没有找到任何解决方案,因为它突然发生了。

以前有人遇到过这种情况吗?如果是,有什么解决办法??

【问题讨论】:

    标签: android google-places-api gmsplacepicker


    【解决方案1】:

    这是最新版本的 Google Play 服务的问题。任何已更新至 9.0.83 版本的设备都会受到影响。

    请参阅我关于此问题的帖子:Android PlacePicker no longer has Search icon after updating to Google Play Services 9.0.83

    从 Google Maps API 错误和功能网站查看这些错误报告: 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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-29
      • 2021-10-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-05
      • 1970-01-01
      相关资源
      最近更新 更多