I have few EditText objects with text inside. I want that on the first time an EditText is getting focus to delete the text in it, but only on the first time.
How can i do it?
Here’s an example:
I have an EditText called SomeThing with the text “someText” in it.
when the user touches SomeThing for the first time i want the “someText” to be deleted.
so let’s say the text was deleted and now the user typed in his own text, this time “someOtherText”, and the EditText lost focus for some other EditText. This time when the user will tap SomeThing, “someOtherText” won’t get deleted because that’s the second time it get’s focus.
Matan, I am not sure if this is what you are looking at, but I think you want to display a ‘hint’ for your Edit Text
Example
For an example check this http://www.giantflyingsaucer.com/blog/wp-content/uploads/2010/08/android-edittext-example-3a.jpg