Hi, Michele. I agree with you this is a bug and I found a strange way to 
handle it. Hope it helps :)


private void lockMenu(){
    for(int i=0;i<menu.size();i++){ 
        menu.getItem(i).setVisible(false);
    } 
}
private void unlockMenu(){
    for(int i=0;i<menu.size();i++){ 
        menu.getItem(i).setVisible(true);
    } 
}



Michele於 2011年5月13日星期五 UTC+8下午9時29分06秒寫道:
>
> I wish to thank you all for the suggestions. 
>
> Anyway i think it's a bug or some design glitch, because the menu items in 
> the first menu (the menu appearing when
> pressing the menu button) are correctly grayed out and not clickable. The 
> problems seems to affect only items in sub menus.
>
> Graying out a menu item and disabling it is common practice (think of the 
> file menu for almost every program in the world), so 
> actually i find it the best way to do what i want, and i find it easy to 
> understand. I many economy games i have a list of things that 
> i can buy and many of them are grayed out (and i know exactly why, don't 
> need to explain to user with some dialog).
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/74afb5e6-df46-4d11-b3b1-1d86cc1b9280%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to