2016-05-13 37 views
0

我正在谷歌地方api上工作,並已成功演示它,但事情是,我已經開發它與自動完成,並需要在列表視圖中做,所以可以有人請幫助我做到這一點?我需要的是在編輯文本中輸入時更改列表內容。谷歌地方api在android中與android中的listView android

代碼

AutoCompleteTextView autoCompView = (AutoCompleteTextView)getActivity().findViewById(R.id.autoCompleteTextView); 

     autoCompView.setAdapter(new GooglePlacesAutocompleteAdapter(getActivity(), R.layout.list_item_one)); 
     autoCompView.setOnItemClickListener(this); 

回答

0

使用Textwatcher爲相同的更新文本獲取從到位API數據和呼叫notifydatasetchanged

+0

我是新手u能幫助我多一點,?請 –