how to use Navigation component navhostfragment while altering full screen/above bottom Navigation

I’m using the single activity multi fragments with navigation component.how do i hide the bottom navigation bar for some of the fragments? i tried the following: controlling the visibility of the …