Have you considered using an XML based menu descriptor?
You could change the menu based on the XML then, which might be an
easier proposition.
The code goes something like this:
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu, menu);
return true;
}
Changing R.menu.menu to something more dynamic should be doable.
-John Coryat
On Jul 22, 10:05 am, drill <[email protected]> wrote:
> Hi,
> I have a Gallery with a couple of photos, which is working really
> great. but now i like to have a menu which is sensetive for the
> picture which is shown currently. So for pic1 i like to have menu1 for
> pic2 i wanna have menu2, etc.... .
> How would I achive this goal? Anyone had similar issues?
>
> Thanks a lot.
> ragrds
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en