Code example for AutoCompleteTextView

Methods: showDropDown

0
		button.setOnClickListener(new OnClickListener() {
 
			@Override 
			public void onClick(View v) {
				// TODO Auto-generated method stub 
				autoTextView.showDropDown();
			} 
		}); 
		 
		this.addView(button,lp);
 
	} 
 
	/* 
	 * 设置数据源 
	 */ 
	public void setAdapter(String[] column) {
		ArrayAdapter<String> mAdapter = new ArrayAdapter<String>(
				this.getContext(), android.R.layout.simple_dropdown_item_1line,
				column);
		autoTextView.setAdapter(mAdapter);