On 02/02/2012 04:42 PM, Mark Murphy wrote:
On Wed, Feb 1, 2012 at 11:12 PM, Stéphane Bruno
<mysubscripti...@websystems.ht>  wrote:
I am trying to programmatically select all the text in an EditText field
when a user touches the field so that when the user starts typing it
replaces the existing text (I cannot use settings in the XML file because
this field is programmatically added to the screen).
setHint() is an available method, used to set the hint text from Java.


It's worth noting that the hint can also be specified in XML, as android:hint.



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to