I use the following code to set text to an AutoCompleteTextView field. But I noticed that when I set certain text (not all text, but some) to it, it will automatically pop u
You can try these steps:
When setting the text, also set the Threshold value to a large value so that the dropdown doesnot come.
actv.setThreshold(1000);
Then override the OnTouch to set the threshold back to 1.
actv.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
actv.setThreshold(1);
return false;
}
});