首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Google Places API Web Service与Google Places API for Android

Google Places API Web Service与Google Places API for Android
EN

Stack Overflow用户
提问于 2015-06-03 12:11:10
回答 1查看 564关注 0票数 0

对于AutoCompleteText for places,哪一个是推荐的。

Google Places API Web ServiceGoogle Places API for Android

哪一项给出了最佳结果?

EN

回答 1

Stack Overflow用户

发布于 2015-06-03 22:21:49

您可以使用任何一个,它们都提供自动完成结果,尽管您需要将结果连接到AutoCompleteTextView

如果您想使用提供GooglePlaceAutoComplete小部件(demo)的库,请查看Sprockets (我是开发人员)。在用你的API密钥设置之后,你可以添加一个working Places API自动完成到你的布局,如下所示:

代码语言:javascript
复制
<net.sf.sprockets.widget.GooglePlaceAutoComplete
    android:id="@+id/place"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30610699

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档