Code example for AutoCompleteTextView

Methods: setHint

0
		typeSpin.setOnItemSelectedListener(new Spinner.OnItemSelectedListener()
		{ 
			@Override 
			public void onItemSelected(AdapterView<?> parent, View view, int position, long id)
			{ 
				queryFld.setHint(hints[position]);
			} 
 
			@Override 
			public void onNothingSelected(AdapterView<?> parent)
			{ 
				; // do nothing 
			} 
		}); 
 
		sendBtn.setOnClickListener(new Button.OnClickListener()
		{ 
			public void onClick(View view)
			{ 
				final String localToken = "%l";
				final String searchToken = "%s";