简体   繁体   English

Android Google地点选择器

[英]Android Google place picker

I am using google place picker in my app and each and everything is working fine. 我在我的应用程序中使用了Google地方选择器,并且每件事都工作正常。 But there are some requirements of my app too. 但是我的应用程序也有一些要求。

When we open the place picker via intent it just look like this 当我们通过意图打开位置选择器时,它看起来像这样

地点选择器

As you can see there is a search field on the top of Place picker , I just want to change the hint from the search to the string that I want. 如您所见,“位置选择器”的顶部有一个搜索字段,我只想将提示从搜索更改为所需的字符串。 let say locate or anything else. 让我们说定位或其他。

Please tell me how can I do this . 请告诉我我该怎么做。 I am pretty sure it can be done. 我很确定可以做到。 But from intent builder it seems impossible. 但是从意图构建器看来,这是不可能的。

Please help. 请帮忙。

I'm afraid currently this is not possible to set custom placeholder text in search element. 恐怕目前无法在搜索元素中设置自定义占位符文本。 I can see the following feature requests in Google issue tracker you might be interested in: 我可以在您可能感兴趣的Google问题跟踪器中看到以下功能请求:

https://issuetracker.google.com/issues/64892097 https://issuetracker.google.com/issues/64892097

https://issuetracker.google.com/issues/62256415 https://issuetracker.google.com/issues/62256415

Feel free to star these feature requests to add your vote and subscribe to notifications. 随时为这些功能请求加注星标,以添加您的投票并订阅通知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM