Code example for AutoCompleteTextView

Methods: showDropDown

0
   _button = new ImageButton(context);
   _button.setImageResource(android.R.drawable.arrow_down_float);
   _button.setOnClickListener(new OnClickListener() {
           @Override 
           public void onClick(View v) {
                   _text.showDropDown();
           } 
   }); 
   this.addView(_button, new LayoutParams(LayoutParams.WRAP_CONTENT,
                   LayoutParams.WRAP_CONTENT));
 } 
public void setEnabled(boolean onoff)
{ 
	super.setEnabled(onoff);
	_text.setEnabled(onoff);
} 
/** 
    * Sets the source for DDLB suggestions. 
    * Cursor MUST be managed by supplier!! 
    * @param source Source of suggestions. 
    * @param column Which column from source to show.