MenuItem enable\disable


Last Updated:

  1. eyalm_nm

    eyalm_nm Member This Topic's Starter

    Joined:
    Feb 5, 2010
    Messages:
    11
    Likes Received:
    0
    Hi,
    In my application, I'm using a Start and StopmenuItems for starting an activity and stop it.
    I'd like to disable the Stop till user press the Start and then enable the Stop and disable the Start.
    How it can be done?
    Thanks,
    Eyal.
     

    Advertisement
  2. Zero

    Zero Member

    Joined:
    Oct 23, 2009
    Messages:
    11
    Likes Received:
    2
    Override onPrepareOptionsMenu(Menu menu) in your activity and use menu.findItem to find the item you want to disable/enable.
     

Share This Page

Loading...