class ImageViewOnTouchListener implements OnTouchListener {
@Override
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
((ImageView) v).setColorFilter(new LightingColorFilter(Color.LTGRAY, 0));
break;
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_OUTSIDE:
((ImageView) v).clearColorFilter();
break;
}
return false;
}
}