Example usage for android.widget SearchView getSuggestionRowLayout

List of usage examples for android.widget SearchView getSuggestionRowLayout

Introduction

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

Prototype

int getSuggestionRowLayout() 

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 . ja  v  a  2s.  co m*/
    mSearchable = searchable;
    mCommitIconResId = searchView.getSuggestionCommitIconResId();

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

    mOutsideDrawablesCache = outsideDrawablesCache;
}