MaterialSearchView icon indicating copy to clipboard operation
MaterialSearchView copied to clipboard

TintView will not show when customizing suggestion adapter

Open X3Daniel opened this issue 8 years ago • 1 comments

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 avatar Mar 14 '16 03:03 X3Daniel

@X3Daniel could you find a solution?

SetareMaghari avatar Dec 30 '17 06:12 SetareMaghari