java - Filter two strings in a listView -


i have sqlite database contains table has 3 columns, i'm using in layout edittext , listview. i've done applying search using edittext , displaying filtered results in listview.

the following code applied edittext called myfilter, words simplecursoradapter :

myfilter.addtextchangedlistener(new textwatcher() {         public void aftertextchanged(editable s) {          }         public void beforetextchanged(charsequence s, int start,           int count, int after) {          }         public void ontextchanged(charsequence s, int start,           int before, int count) {            words.getfilter().filter(s.tostring());         }     }); 

what want filter 2 charsequences, example want display in listview words starts , b, can (for example words.getfilter().filter("a","b"); ?


Comments

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -