[英]how to empty (or reset) an edittext
Say the user answers a mathematical question, then he moves on to answer the next one. 假设用户回答了一个数学问题,然后他继续回答下一个问题。 What statement do you use to empty the EditText? 您使用什么语句来清空EditText?
ie 1 + 1 = 2, 2 is still in the EditText when the equation is now 3 + 3. 即当方程现在为3 + 3时,即1 +1 = 2、2仍在EditText中。
If I haven't made myself clear please let me know. 如果我还不清楚,请告诉我。
将文本设置为""
:
editText.setText("");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.