2021年3月22日星期一

Is there a way to get the Android button pressed state?

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??

https://stackoverflow.com/questions/66756077/is-there-a-way-to-get-the-android-button-pressed-state March 23, 2021 at 09:38AM

没有评论:

发表评论