Code example for Fragment

Methods: setMenuVisibilitysetUserVisibleHint