I am developing an Android , which has a Text Field.
Every time user presses any key in the text field(EDIT TEXT), I want to to read that in a character variable, perform some action with that variable, and simultaneously empty the text field. In a way, it is a listener to that EditText Field which performs an operation with every key(character) pressed.
Any ideas on how to implement it?
实施TextWatcher并将其添加到您的EditText: http : //developer.android.com/reference/android/text/TextWatcher.html
您将要使用TextWatcher 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.