It's my understanding that in a normal FragmentActivity / ViewPager / FragmentStatePagerAdapter situation onCreateOptionsMenu should be handled by the ListFragment... ...but what about in a scenario where ActionBarSherlock is extending the FragmentActivity and ListFragment classes?
I'm having a hard time getting onCreateOptionsMenu to work in the SherlockListFragment:
- The ABS version of onCreateOptionsMenu is boolean, not void.
- The ABS version of onCreateOptionsMenu omits MenuInflater as a parameter
- Instantiating MenuInflater in SherlockListFragment.onCreateOptionsMenu is a problem ("Inflater cannot be resolved to a type").
I would be grateful if anyone could show me what I'm doing wrong...
Thanks!