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 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 An example here:. 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 "search" method, you many...