title: not showing MotionEvent.ACTION_UP or MotionEvent.ACTION_CANCEL
body: <p>I am writing an Android app that needs to respond to touch events. I want my app to change the color of my list item to a custom color. I have written the following code, but only the <code>MotionEvent.ACTION_DOWN</code> section is working. The LogCat shows that <code>ACTION_CANCEL</code> and <code>ACTION_UP</code> aren't called at all. Could you please help me understand why my code isn't working.</p>
  
  <p>This is my code...</p>
  
  <pre><code>view.setOnTouchListener(new OnTouchListener() {
  
      public boolean onTouch(View v, MotionEvent event) {
          if (event.getAction() == MotionEvent.ACTION_UP) {
              view.setBackgroundColor(Color.rgb(1, 1, 1));
              Log.d("onTouch", "MotionEvent.ACTION_UP" );
          }
          if (event.getAction() == MotionEvent.ACTION_DOWN) {
              view.setBackgroundColor(Color.rgb(23, 128, 0));
              Log.d("onTouch", "MotionEvent.ACTION_DOWN" );
          }
          if (event.getAction() == MotionEvent.ACTION_CANCEL) {
              view.setBackgroundColor(Color.rgb(1, 1, 1));
              Log.d("onTouch", "MotionEvent.ACTION_CANCEL" );
          }
          return false;
      }
  });
  </code></pre>