title: How to disable all user inputs (click, touch) on an android view
body: <p>I have a game view which is an extension of View class. In this view I use canvas drawing objects, which the users can interact with.</p>
  
  <p>This view loaded to the layout of an activity. I want to disable all user inputs to the game view, when a button is clicked in the layout.</p>
  
  <p>I tried using </p>
  
  <pre><code>gameView.setEnabled(false);
  gameView.setClickable(false);
  </code></pre>
  
  <p>But still the user can interact with the canvas objects.</p>
  
  <p>FYI : Gameview class implements following interfaces as well.</p>
  
  <pre><code>public class Gameview extends View implements OnGestureListener,
          OnDoubleTapListener, OnScaleGestureListener, AnimationListener 
  </code></pre>