I appreciate your words about consistency and I will consider that. Meanwhile, how do I achieve android:editable="false" in code?
I didn't see .setEditable on the EditText widget. Thanks. On Mar 15, 11:26 pm, Romain Guy <[email protected]> wrote: > You could use android:editable="false" but I would really advise you > to use setEnabled(false) as it provides a visual clue to the user that > the control cannot be edited. The same visual cue is used by all > disabled widgets and consistency is good :) > > > > On Sun, Mar 15, 2009 at 11:23 PM, frizzo <[email protected]> wrote: > > > Thank you. However, setEnabled(false) disables the entire control > > (e.g. grays it out, etc..). I don't really want that. I simply want > > the user to be unable to change a value in the EditText widget. > > > Btw, the reason, I don't just use a TextView widget is that readonly > > is only needed when certain conditions are met. > > > Thanks. > > > On Mar 15, 11:14 pm, Romain Guy <[email protected]> wrote: > >> setEnabled(false). You may want a simple TextView inside too. > > >> On Sun, Mar 15, 2009 at 11:13 PM, frizzo <[email protected]> wrote: > > >> > I can't seem to find a method that does that. Is there a way to do > >> > it? > > >> > Thanks. > > >> -- > >> Romain Guy > >> Android framework engineer > >> [email protected] > > >> Note: please don't send private questions to me, as I don't have time > >> to provide private support. All such questions should be posted on > >> public forums, where I and others can see and answer them > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

