Android onFling not responding

后端 未结 5 1626
野的像风
野的像风 2020-12-30 13:28

I am new to android first of all so think of any newbie mistakes first

I am trying to add a fling function in my code.

public class MainGamePanel ext         


        
5条回答
  •  醉梦人生
    2020-12-30 13:55

    onDown is called before the onFling event. If you return false in onDown method, the motion event propagation will stop.

    Try to change return false in return true at the end of onDown method.

    The return values are explained, somewhat obtusely, in the Input Events page of the Dev guide. (scroll down below the example code to see).

提交回复
热议问题