autocomplete - How to Customize the View of AutoCompleteTextView in Android? -
I AutoCompleteView where users can search for other users. User is a custom object that contains the ID, name. The AutoCompleteView user is the controller by the adapter in the User Adapter suggestion to handle the view of the user object. How do I set an autocomplete view to search the user name? I mean, should work on the basis of auto-complete username. The
You must use An example here:. "search" method, you many examples, in my case, that is linked to a BDD, so I use a asyncTask, but if you already have a The list can be archived, use match function. Hoop helps it. addTextChangedListener
on your autocomplete text Because Afterwards, use a method provided to call 3 other functions which will contain your list which includes user names
recherche.addTextChangedListener (New TextWatcher () {@Override public void beforeTextChanged (charSequence charSequence Int I, I2 Integer, Integer i3) {} @Override public void onTextChanged (charSequence charSequence Int I integer I2, I3 integer) {if (charSequence.length () & gt; 1) Khojasucnaan (charsequence);} @ Ovrred public void (editable after editing text) {}}); For
Comments
Post a Comment