我在设置AutoCompleteTextView的默认值时遇到了问题。
首先,我尝试使用
setText("默认值")
。
然后,我搜索并尝试了以下方法:autoText.postDelayed(new Runnable() {
@Override
public void run() {
autoText.showDropDown();
}
},500);
autoText.setText("chi");
autoText.setSelection(tvNewRestoAddress.getText().length());
但它仍然无法工作。有任何建议吗?