Android ACTION_UP does not get fired after ACTION_MOVE
问题 I'm trying to create a view programmatically, and change its background according to its click state. I know I can do this with xml drawables, but I want to learn to program it too. But if I press on my view, then slide my finger, the view gets stuck in pressed state. (white = 0xaaffffff background) My code is this : Edit: I solved the problem. Here is the working code : mainContainer.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { //