Code example for ArrayAdapter

Methods: getFilter

0
     
    private TextWatcher textWatcher = new TextWatcher() {
		 
		@Override 
		public void onTextChanged(CharSequence s, int start, int before, int count) { 
			mArrayAdapter.getFilter().filter(s); 
		} 
		 
		@Override 
		public void beforeTextChanged(CharSequence s, int start, int count, int after) {} 
		 
		@Override 
		public void afterTextChanged(Editable s) {} 
	}; 
	 
	String[] items = new String[] {
			"China", 
			"India", 
			"United States", 
			"Indonesia", 
			"Brazil",