Example #1
0
 @Override
 public boolean onQueryTextChange(String newText) {
   if (TextUtils.isEmpty(newText)) {
     grid_currentQuery = null;
   } else {
     grid_currentQuery = newText;
     adapter.getFilter().filter(newText);
   }
   return false;
 }
Example #2
0
 @Override
 public boolean onQueryTextSubmit(String query) {
   adapter.getFilter().filter(query);
   return false;
 }