【发布时间】:2016-09-09 12:19:36
【问题描述】:
我正在研究 google places api,并在上面做了一个成功的演示,但问题是我已经用自动完成功能开发了它,需要在 listview 中做,所以有人可以帮我做吗?我需要的是在输入编辑文本时更改列表内容。
代码
AutoCompleteTextView autoCompView = (AutoCompleteTextView)getActivity().findViewById(R.id.autoCompleteTextView);
autoCompView.setAdapter(new GooglePlacesAutocompleteAdapter(getActivity(), R.layout.list_item_one));
autoCompView.setOnItemClickListener(this);
【问题讨论】:
标签: android listview autocomplete google-places-api