Code example for AutoCompleteTextView

Methods: setHint

0
	public void set_Tag(String tag) {
		this.setTag(tag);
	} 
 
	public void setHint(String hint) {
		mEditContent.setHint(hint);
	} 
 
	public String getHint() {
		return (String) mEditContent.getHint();
	} 
 
	@Override 
	public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
		// 获取当前view,得到真正的值 设置进去 
		TextView textView = (TextView) arg1.findViewById(R.id.name);
		mEditContent.setThreshold(100);
		mEditContent.setText(textView.getText());
		mEditContent.setSelection(textView.getText().length());
	}