Code example for SearchView

Methods: getQuerysetQuery

0
            return true; 
        } 
 
        @Override 
        public boolean onClose() { 
            if (!TextUtils.isEmpty(mSearchView.getQuery())) {
                mSearchView.setQuery(null, true);
            } 
            return true; 
        } 
 
        @Override public void onListItemClick(ListView l, View v, int position, long id) {
            // Insert desired behavior here. 
            Log.i("CustomLoader", "Item clicked: " + id);
        } 
 
        @Override public Loader<List<AppEntry>> onCreateLoader(int id, Bundle args) {
            // This is called when a new Loader needs to be created.  This 
            // sample only has one Loader with no arguments, so it is simple. 
            return new AppListLoader(getActivity());
        }