This week's book giveaway is in the Design forum. We're giving away four copies of Experimentation for Engineers: From A/B testing to Bayesian optimization and have David Sweet on-line! See this thread for details.
I want to get the Menu instance from the menu item instance in it. Here is the scenario why i require this
I have created options menu with one item. Now when user clicks this item , i want to add another menu item in the same menu. So i need menu in the call back method from the
MenuItem being passed.
I will suggest an easier logic. Take a variable which keeps track of you desired menu item's click state. And in onPrepareOptionsMenu or onCreateOptionsMenu you can add or remove other menu item..
I think this should work.
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!