- Add a button to your layout; - Add an OnClickListener to the button;
- In the listener's onClick, call editText.getText() to get the Editable object and call clear() on that.
-- Kostya 12.01.2011 19:45, Richard Sámela пишет:
Hi, I saw an app where was EditText and if you put some text into EditText there was a Cross Button (or something like that) on the left side. And if I click on this Button the text from EditText was deleted. Can you help me or explain me how to to this? I would like to use EditText with the same effect.
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

