public SuggestionsAdapter(android.content.Context context, android.widget.SearchView searchView, android.app.SearchableInfo searchable, java.util.WeakHashMap <string , android.graphics.drawable.Drawable.ConstantState> outsideDrawablesCache) : base (context, [email protected]_dropdown_item_icons_2line, null, true ) { mSearchManager = (android.app.SearchManager)mContext.getSystemService(android.content.Context .SEARCH_SERVICE); mSearchView = searchView; mSearchable = searchable; android.content.Context activityContext = mSearchable.getActivityContext(mContext ); mProviderContext = mSearchable.getProviderContext(mContext, activityContext); mOutsideDrawablesCache = outsideDrawablesCache; getFilter().setDelayer(new _Delayer_130()); }
/// <summary>Sets the SearchableInfo for this SearchView.</summary> /// <remarks> /// Sets the SearchableInfo for this SearchView. Properties in the SearchableInfo are used /// to display labels, hints, suggestions, create intents for launching search results screens /// and controlling other affordances such as a voice button. /// </remarks> /// <param name="searchable"> /// a SearchableInfo can be retrieved from the SearchManager, for a specific /// activity or a global search provider. /// </param> public virtual void setSearchableInfo(android.app.SearchableInfo searchable) { mSearchable = searchable; if (mSearchable != null) { updateSearchAutoComplete(); updateQueryHint(); } // Cache the voice search capability mVoiceButtonEnabled = hasVoiceSearch(); if (mVoiceButtonEnabled) { // Disable the microphone on the keyboard, as a mic is displayed near the text box // TODO: use imeOptions to disable voice input when the new API will be available mQueryTextView.setPrivateImeOptions(IME_OPTION_NO_MICROPHONE); } updateViewsVisibility(isIconified()); }
public virtual android.database.Cursor getSuggestions(android.app.SearchableInfo searchable, string query, int limit) { throw new System.NotImplementedException(); }
public SuggestionsAdapter(android.content.Context context, android.widget.SearchView searchView, android.app.SearchableInfo searchable, java.util.WeakHashMap<string , android.graphics.drawable.Drawable.ConstantState> outsideDrawablesCache) : base (context, [email protected]_dropdown_item_icons_2line, null, true ) { mSearchManager = (android.app.SearchManager)mContext.getSystemService(android.content.Context .SEARCH_SERVICE); mSearchView = searchView; mSearchable = searchable; android.content.Context activityContext = mSearchable.getActivityContext(mContext ); mProviderContext = mSearchable.getProviderContext(mContext, activityContext); mOutsideDrawablesCache = outsideDrawablesCache; getFilter().setDelayer(new _Delayer_130()); }