Skip to content Skip to sidebar Skip to footer

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

Solution 1:

What about returning true in your ACTION_UP aswell?

if (action==MotionEvent.ACTION_UP)

    {               
      v.setBackgroundColor(0x00ffffff);
      return true;
    }

Post a Comment for "Android Action_up Does Not Get Fired After Action_move"