[android-developers] EditText with Cross

2011-01-12 Thread 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 e

Re: [android-developers] EditText with Cross

2011-01-12 Thread Kostya Vasilyev
- 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 int

Re: [android-developers] EditText with Cross

2011-01-12 Thread Kumar Bibek
It might just be a regular button beside the EditText. And I guess that's very simple to implement. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Jan 12, 2011 at 10:15 PM, Richard Sámela wrote: > Hi, > I saw an app where was EditText and if you put some text into Edit