setEnabled(false) works fine for CheckBox. What version of SDK are you using? Can you post your code here?
-- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 2, 6:18 pm, Beth Mezias <emez...@gmail.com> wrote: > Hello, > I want to switch a button out of my UI in favor of a CheckBox object. > However, the enable = false parameter in my layout does not seem to have > any effect on a CheckBox! My plan is to code the CheckBox to be enabled > when certain other objects are valid. With a button object, the grayness > and the lack of response to clicks is clear and obvious. When I use > a CheckBox and set it to be disabled it has no effect. The object is drawn > the same way with true as it is drawn with false in the enabled/setClickable > parameter, the callbacks for the touch events work the same, the > object continues to respond to onClick and onCheckedChange events when it is > supposed to be disabled. This looks like a bug to me. > > Has anybody got the setEnabled(false) or setClickable(false) methods working > on a CheckBox? Any workaround or explanation would be helpful. > > Thanks and regards, > Beth > > -- > > Rita Rudner <http://www.brainyquote.com/quotes/authors/r/rita_rudner.html> > - "I was a vegetarian until I started leaning toward the sunlight." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---