我想在将 EditText
中的文本保存到数据库后将其清除。
这是我的代码:
pictureDescription.addTextChangedListener(new TextWatcher()
{
public void afterTextChanged(Editable textValue)
{
String content = textValue.toString();
db.updatePicDes(content,lastSnapId);
}
}
最佳答案
使用 editText.getText().clear()
。
关于java - 如何清除edittext中的文字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7426443/