Re: [android-developers] EditText selectAll() does not work in ICS

2012-02-02 Thread Stéphane Bruno
I applied Mark Murphy's suggestion. It works now. I am going to file a bug for the method I tried though... Thanks, guys! On Thu, Feb 2, 2012 at 9:15 AM, dmon wrote: > Hmmm i just saw there's a selectAllOnFocus attribute. I've never tried it > though. > > -- > You received this message because y

Re: [android-developers] EditText selectAll() does not work in ICS

2012-02-02 Thread dmon
Hmmm i just saw there's a selectAllOnFocusattribute. I've never tried it though. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post t

Re: [android-developers] EditText selectAll() does not work in ICS

2012-02-02 Thread Mark Murphy
On Thu, Feb 2, 2012 at 8:52 AM, Stéphane Bruno wrote: > >> Then create an XML layout that contains just the EditText and inflate >> that, rather than adding it through Java directly. > >  I am going to try that, but can you explain why the above method does not > work? Is it a bug? If I knew that

Re: [android-developers] EditText selectAll() does not work in ICS

2012-02-02 Thread Stéphane Bruno
> Then create an XML layout that contains just the EditText and inflate > that, rather than adding it through Java directly. > I am going to try that, but can you explain why the above method does not work? Is it a bug? Stéphane > -- You received this message because you are subscribed to t

Re: [android-developers] EditText selectAll() does not work in ICS

2012-02-02 Thread Mark Murphy
On Thu, Feb 2, 2012 at 8:09 AM, Stéphane Bruno 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

Re: [android-developers] EditText selectAll() does not work in ICS

2012-02-02 Thread Stéphane Bruno
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 de

Re: [android-developers] EditText selectAll() does not work in ICS

2012-02-02 Thread Kostya Vasilyev
On 02/02/2012 04:42 PM, Mark Murphy wrote: On Wed, Feb 1, 2012 at 11:12 PM, Stéphane Bruno 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 t

Re: [android-developers] EditText selectAll() does not work in ICS

2012-02-02 Thread Mark Murphy
On Wed, Feb 1, 2012 at 11:12 PM, Stéphane Bruno 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 progr