list - Search through android app -
i'm trying create android app contains lists want search in using search bar , search in app features. in other words, i'm creating app shows courses in list , user can search specific course typing name in search bar google , search can features in app. there source code this?
thanks in advance.
are trying implement search functionality in listview...
you can create edittext above listview , implement textchangelistener...
in here, per input string of edittext can filter listview.
inputsearch.addtextchangedlistener(new textwatcher() { @override public void ontextchanged(charsequence cs, int arg1, int arg2, int arg3) { // when user changed text mainactivity.this.adapter.getfilter().filter(cs); } @override public void beforetextchanged(charsequence arg0, int arg1, int arg2, int arg3) { // todo auto-generated method stub } @override public void aftertextchanged(editable arg0) { // todo auto-generated method stub } }); try this link..
this guide in proper direction..
let me know if want else..
Comments
Post a Comment