title: Hide Statusbar in fragment
body: <p>I'm trying to hide status bar in fragment.
  I have successfully hidden toolbar but I want to hide status bar also only in one fragment..</p>
  
  <pre><code>  @Override
      public void onCreate(Bundle arg0) {
          super.onCreate(arg0);
  
     // requestWindowFeature(Window.FEATURE_NO_TITLE);
  
          ((HomeActivity)getActivity()).getSupportActionBar().hide();
      }
  </code></pre>
  
  <p>Above code working fine for hide toolbar</p>
  
  <pre><code>  requestWindowFeature(Window.FEATURE_NO_TITLE);
  </code></pre>
  
  <p>If I <code>requestWindowFeature</code> in fragment <code>onCreate</code> (has mentioned above)  application was crashed.</p>
  
  <p><strong>Added three screenshots after implementing answer by @Mathan Chinna</strong></p>
  
  <ol>
  <li>Normal Screen</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/KbX4T.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KbX4T.jpg" alt="Normal Screen"></a></p>
  
  <ol start="2">
  <li>After implementing the code from @Mathan Chinna</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/sSWqf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sSWqf.jpg" alt="code from mathan chinna"></a></p>
  
  <ol start="3">
  <li>When I come back from full screen</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/urJaK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/urJaK.jpg" alt="When I come back from full screen"></a></p>