title: Check action bar is hidden or visible in android
body: <p>I want to check <code>action bar</code> is hidden or visible when double tap on a <code>WebView</code>. My code is :</p>
  
  <pre><code>@Override
  public boolean onDoubleTapEvent(MotionEvent e) {
      if (getSupportActionBar().isShowing()){
          getSupportActionBar().hide();
      }else {
          getSupportActionBar().show();
      }
  
      //view.zoomIn();//Zoom in
      return true;
  }
  </code></pre>
  
  <p>I want to check if action bar is visible.If its visible when double tap event occurs it should hide the action bar,</p>
  
  <p>if it is hidden at first time then it should display the action bar when double tap occurs .</p>
  
  <p>But above code generates error. so please help me to make a code working.</p>