Menu setChecked Oddity

Put your problem here if it does not fit any of the other categories.

Menu setChecked Oddity

Postby ramgraph1 » Sat Mar 01, 2008 10:52 pm

With the older SDK when a menu item was checked and then unchecked it returned to its original state (if I remember correctly). Now, when I use ".setChecked(false);" the menu item's checkbox does NOT return to the original state, it shows a third state (orange check box with a white check in it). This is visually very confusing and not very attractive. Is there a way to have menu items' checkboxes go back to the default, originally unchecked appearance on ".setChecked(false);"?
ramgraph1
Experienced Developer
Experienced Developer
 
Posts: 68
Joined: Wed Jan 09, 2008 10:03 pm

Top

Postby plusminus » Sun Mar 02, 2008 11:12 am

Hello ramgraph1,

yes I know that. In VB :roll: it was called "greyed"-state.
Perhaps setOnCheckedChangeListener and search for a method that sounds appropriate.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 16 guests