[android-developers] Using Options Menu in a multi-Fragment Activity

2011-07-27 Thread Sam
I have a FragmentActivity which hosts a FragmentStatePagerAdapter. The pager contains multiple instances of the same fragment, in order that the user can swipe between the items in a list. I want to be able to provide the user with an options menu which will act only on the visible item. For

Re: [android-developers] Using Options Menu in a multi-Fragment Activity

2011-07-27 Thread Dianne Hackborn
You will need to have the activity populate the options menu and call to the current fragment when an item is selected. On Tue, Jul 26, 2011 at 3:39 PM, Sam sam.oak...@blork.co.uk wrote: I have a FragmentActivity which hosts a FragmentStatePagerAdapter. The pager contains multiple instances of