对于AutoCompleteText for places,哪一个是推荐的。
Google Places API Web Service或Google Places API for Android。
哪一项给出了最佳结果?
发布于 2015-06-03 22:21:49
您可以使用任何一个,它们都提供自动完成结果,尽管您需要将结果连接到AutoCompleteTextView。
如果您想使用提供GooglePlaceAutoComplete小部件(demo)的库,请查看Sprockets (我是开发人员)。在用你的API密钥设置之后,你可以添加一个working Places API自动完成到你的布局,如下所示:
<net.sf.sprockets.widget.GooglePlaceAutoComplete
android:id="@+id/place"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>https://stackoverflow.com/questions/30610699
复制相似问题