title: Remove ActionBar in fragment
body: <p>I have some troubles trying to remove a toolbar in a specific fragment, i have this code in onCreateView fragment method:</p>
  
  <pre><code>    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.fragment_login,container,false);
      mValidator = new Validator(this);
      mValidator.setValidationListener(this);
      mFbHelper = new 
      mGHelper = new GoogleHelper(this, null, this);
  
      ((DrawerUtil) getActivity()).setDrawerLocked(true);
      ((AppCompatActivity) getActivity()).getSupportActionBar().hide();
      initViews(view);
      return view;
  }
  </code></pre>
  
  <p>I can hide the ActionBar, but the idea is to remove the ActionBar to use properly a logo, im using this code: <code>((AppCompatActivity) getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(state);
  </code> but it doesnt work.<a href="https://i.stack.imgur.com/lIT3I.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lIT3I.jpg" alt="enter image description here"></a>
  Any ideas?</p>