title: android hide title in fragment
body: <p>I have started working in fragment. I am trying to hide  <code>titleBar</code> in fragment, but i have this Log-cat Error</p>
  
  <pre><code>android fragment requestfeature must be called before adding content
  </code></pre>
  
  <p>this is a source</p>
  
  <pre><code>public class SendItemsFragment extends Fragment {
  
  Button b1;
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      getActivity().requestWindowFeature(Window.FEATURE_NO_TITLE);
  
  
      View rootView = inflater.inflate(R.layout.send_items, container, false);
  
  
  
      return rootView;
      }
  
  }
  </code></pre>