title: Strange issue on ImageView with OnTouchListener while running Jelly Bean
body: <p>I'm creating an ImageView programmatically on my interface, in this way:</p>
  
  <pre><code>...
  ImageView image = new ImageView(getActivity());
  TableRow.LayoutParams params = new TableRow.LayoutParams(width, height);
  image.setLayoutParams(params);
  image.setPadding(5, 3, 5, 3);
  image.setImageBitmap(myBitmap);
  image.setTag(key);
  image.setOnClickListener(this);
  image.setOnTouchListener(this);
  ...
  </code></pre>
  
  <p>And this is my onTouch method:</p>
  
  <pre><code>@Override
  public boolean onTouch(View v, MotionEvent event) {
      // Apply the pressed effect on a button
      ImageView button = (ImageView) v;
      if (event.getAction() == MotionEvent.ACTION_DOWN) {
          button.setColorFilter(Color.argb(150, 155, 155, 155));
          return false;
      } else if (event.getAction() == MotionEvent.ACTION_UP) {
          button.setColorFilter(Color.argb(0, 155, 155, 155));
          return false;
      }
      return false;
  }
  </code></pre>
  
  <p>Of course i implement OnTouchListener, and my goal is to add an effect to ImageView when it is pressed. But i noticed a strange behavior:</p>
  
  <ul>
  <li><p>if device/emulator has Jelly Bean, the ImageView disappears and never become visible after i clicked it;</p></li>
  <li><p>otherwise, if device/emulator has pre Jelly Bean version of Android (ICS, Gingerbread), the ImageView is ok and won't disappears from my interface.</p></li>
  </ul>
  
  <p>Logcat does not report an error and i don't want/need to use ImageButton instead.</p>
  
  <p>My questions are: am i missing something on my code? Why this is happening on two different version (but not so far) of Android release?</p>
  
  <p>Thank you in advance.</p>
  
  <p>EDIT:
  I forgot to say that this code is part of a Fragment.</p>