1

How can I set the visibility of an ActionBar item in different fragment

view story
linux-howto

http://stackoverflow.com – I'm looking for a way to set the visibility of a MenuItem inflated in my MainActivity depending on which Fragment I am on. For information: I'm using actionBarSherlock, zxing, and some google services. The application was built with a Navigation drawer(With abs), also I manipulate the FragmentStack in such way I everytime I switch to another Fragment when I press the touch back I come back in my Main Fragment. Here my menu: <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/button_generator" android:title="GENERER" android:icon="@drawable/ (HowTos)