Example usage for android.widget SearchView getSuggestionCommitIconResId

List of usage examples for android.widget SearchView getSuggestionCommitIconResId

Introduction

In this page you can find the example usage for android.widget SearchView getSuggestionCommitIconResId.

Prototype

int getSuggestionCommitIconResId() 

Source Link

Usage

From source file:android.support.v7.widget.SuggestionsAdapter.java

public SuggestionsAdapter(Context context, SearchView searchView, SearchableInfo searchable,
        WeakHashMap<String, Drawable.ConstantState> outsideDrawablesCache) {
    super(context, searchView.getSuggestionRowLayout(), null /* no initial cursor */, true /* auto-requery */);
    mSearchManager = (SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE);
    mSearchView = searchView;//w w w. j a  v a 2s  . c  om
    mSearchable = searchable;
    mCommitIconResId = searchView.getSuggestionCommitIconResId();

    // set up provider resources (gives us icons, etc.)
    mProviderContext = context;

    mOutsideDrawablesCache = outsideDrawablesCache;
}