a的方法setSuggestionsAdapter
给SearchView
了我一个奇怪的错误:
我有一个InformationAdapter
扩展的类CursorAdapter
,但它说我不能将它转换为CursorAdapter
.
SearchView 类型中的方法 setSuggestionsAdapter(CursorAdapter) 不适用于参数 (InformationAdapter)
InformationAdapter suggestionsAdapter = new InformationAdapter(false, this, suggestions, CursorAdapter.NO_SELECTION);
searchView.setSuggestionsAdapter(suggestionsAdapter);