The Android Button has only ACTION_UP, ACTION_DOWN, and ACTION_MOVE states, so I can't hold down the Button for a long time... As a simple example, I want to make a top, bottom, left and right Button and move the square box displayed on the screen (drawRect drawn on Canvas). I want to implement a state in which the box continues to rise when the upper button is pressed.
What listener should be attached to the Button??
没有评论:
发表评论