On Thu, Feb 2, 2012 at 8:09 AM, Stéphane Bruno <mysubscripti...@websystems.ht> wrote: > No. The hint method does not suit what I want to do. The text in the > EditText field is valid text, not a hint about what the user should enter. > In fact it is a Quantity field in an order entry system. I want the user to > just enter a new number over the number that is already there instead of > deleting the existing and reenter a new one.
You can still use hint. If the field is blank, use the hint text as the value. > There is an option for that in the XML layout, but I cannot use it > because this field is constructed programmatically (as users enter new line > items). Then create an XML layout that contains just the EditText and inflate that, rather than adding it through Java directly. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.4 Available! -- 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