简体   繁体   中英

How to add custom gesture android studio?

So there is my question. I would like to know how to add custom pattern for a gesture in Android Studio, just like: draw a tick to continue or something like that.

Thanks in advance.

I don't think this is possible as you have to use the MotionEvent enum. An example of how this is done is shown here

You'd have to look at extending this or using movement tracking to work out things like velocity of the motion, there's documentation here but it doesn't look elementary.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM