【发布时间】:2013-07-24 16:07:14
【问题描述】:
SearchView 的方法setSuggestionsAdapter 给了我一个奇怪的错误:
我有一个扩展 CursorAdapter 的类 InformationAdapter,但它说我不能
将其转换为 CursorAdapter。
SearchView 类型中的方法 setSuggestionsAdapter(CursorAdapter) 不适用于参数(InformationAdapter)
InformationAdapter suggestionsAdapter = new InformationAdapter(false, this, suggestions, CursorAdapter.NO_SELECTION);
searchView.setSuggestionsAdapter(suggestionsAdapter);
【问题讨论】:
标签: android android-cursoradapter search-suggestion