a7omiton
a7omiton

Reputation: 1617

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?

i.e. 1 + 1 = 2, 2 is still in the EditText when the equation is now 3 + 3.

If I haven't made myself clear please let me know.

Upvotes: 1

Views: 167

Answers (1)

user
user

Reputation: 87064

Set the text to "":

editText.setText("");

Upvotes: 5

Related Questions