2015-06-03 152 views
0

推荐哪一个用于AutoCompleteText的地方。Google Places API Web服务与Android版Google Places API

Google Places API Web ServiceGoogle Places API for Android

哪给出最佳结果?

+0

你能在你需要自动完成使用什么详细点吗?你想要实现什么样的功能? –

+0

自动完成Google地点 – kTn

回答

0

虽然您需要将结果连接到AutoCompleteTextView,但您可以使用它们都提供自动完成结果。

如果您想使用提供GooglePlaceAutoComplete小部件的库(demo),请查看Sprockets(我是开发人员)。与您的API密钥设置它之后,你可以工作的地方API自动完成的东西,如添加到您的布局:

<net.sf.sprockets.widget.GooglePlaceAutoComplete 
    android:id="@+id/place" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content"/>