title: why fragment can't hide bottom bar
body: <p>why fragment can't hide bottom bar</p>
  
  <p>but activity can hide top and bottom</p>
  
  <p>use the following code :</p>
  
  <pre><code>View decorView = getWindow().getDecorView();
  int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION| View.SYSTEM_UI_FLAG_FULLSCREEN;
  decorView.setSystemUiVisibility(uiOptions);     
  getActionBar().hide();
  </code></pre>
  
  <h2>fragment side didn't work</h2>
  
  <p><strong>i try answer 1 
  but it still not work
  when i touch my fragment area 
  it will show top and bottom ,let me confused a lot</strong></p>
  
  <p>following is my code:
  (fragment side)</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) 
  {
  
    View decorView = getActivity().getWindow().getDecorView();
    int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION|View.SYSTEM_UI_FLAG_FULLSCREEN;
    decorView.setSystemUiVisibility(uiOptions);    
    getActivity().getActionBar().hide();
  } 
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
              Bundle savedInstanceState) 
  {
     View rootView = inflater.inflate(R.layout.fragment_ge, container, false);
     return rootView;
  }
  </code></pre>