Code example for ArrayAdapter

Methods: getFilter

0
		 
		linkSearchInput.addTextChangedListener(new TextWatcher() {
		    @Override 
		    public void onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) {
		        // When user changes the Text 
		        adapter.getFilter().filter(cs);  
		    } 
		    @Override 
		    public void beforeTextChanged(CharSequence arg0, int arg1, int arg2,
		            int arg3) { }
		    @Override public void afterTextChanged(Editable arg0) { }
		}); 
		 
		listview.setAdapter(adapter);
 
		listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {
			@Override 
			public void onItemClick(AdapterView<?> parent, final View view,
					int position, long id) {
				final String item = (String) parent.getItemAtPosition(position);
Connect your IDE to all the code out there  Get Codota for Java