java - How to set filter to AutoCompleteTextView? -
i have data in in arraylist alldoctorsandspecialities.
in oncreate method have set adapter , threshold(3) autotxt(autocompletetextview)
however,my problem don't want show dropdown strings entered in edittext "dr.","dr. ",etc.
following solutions tried
1) code:
autotxt.addtextchangedlistener(new textwatcher() { @override public void ontextchanged(charsequence s, int start, int before, int count) { // todo auto-generated method stub } @override public void beforetextchanged(charsequence s, int start, int count, int after) { // todo auto-generated method stub } @override public void aftertextchanged(editable s) { // todo auto-generated method stub if(autotxt.gettext().tostring().equals("dr.")){ autotxt.dismissdropdown(); } } });
problem- not work combination 'docname docsurname'
2)autocompletetextview filter problem
problem-it did not work problem
3)how use publishresults() method when extending filters in android?
problem-i dont understand how set constraint performfiltering method
please suggest me how proceed. in advance
Comments
Post a Comment