title: Android tabs - Disable switching between tabs on click
body: <p>How can I disable switching between tabs when user presses on them?</p>
  
  <p>I use ViewPager and then polute it with tabs. I managed to disable swiping by using following code, but this doesn't prevent user from switching between tabs by clicking on them:</p>
  
  <pre><code>@Override
  public boolean onTouchEvent(MotionEvent event) {
      return false;
  }
  
  @Override
  public boolean onInterceptTouchEvent(MotionEvent event) {
      return false;
  }
  </code></pre>