MaterialSearchView
MaterialSearchView copied to clipboard
TintView will not show when customizing suggestion adapter
when we setSuggestions by default,it will show mTintView
public void setSuggestions(String[] suggestions) {
if (suggestions != null && suggestions.length > 0) {
mTintView.setVisibility(VISIBLE);
final SearchAdapter adapter = new SearchAdapter(mContext, suggestions, suggestionIcon, ellipsize);
setAdapter(adapter);
setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
setQuery((String) adapter.getItem(position), submit);
}
});
} else {
mTintView.setVisibility(GONE);
}
}
but when we customized a adapter,it do nothing
@X3Daniel could you find a solution?