title: Fling using GestureDetector android
body: <pre><code>public boolean onFling(MotionEvent e1, MotionEvent e2,
                  float velocityX, float velocityY) {
              // TODO Auto-generated method stub
              if(velocityX&lt;-10.0f)
              {
                  mCurrentStateLayout = mCurrentStateLayout == 0 ? 1 : 0;
                  switchLayoutStateTo(mCurrentStateLayout);
              }
              return true;    
          }           
      });
  </code></pre>
  
  <p>What does the statement mCurrentStateLayout = mCurrentStateLayout == 0 ? 1 : 0; mean?</p>