title: requestFeature() must be called before adding content in Fragment
body: <pre><code>android.util.AndroidRuntimeException: requestFeature() must be called before adding content
  </code></pre>
  
  <p>I get this error when i use</p>
  
  <pre><code>getActivity().getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
  </code></pre>
  
  <p>from fragment.
  I want to change actionbar style only in this fragment. So I can't set this in <code>MainActivity</code>. How to solve this?</p>
  
  <p>I saw this question <a href="https://stackoverflow.com/questions/4250149/requestfeature-must-be-called-before-adding-content.But">requestFeature() must be called before adding content</a> it does not say how to solve this issue from a fragment</p>