Code example for Fragment

Methods: setMenuVisibility