2015-06-03 29 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"/>