I've been working on making customized lock screen.

I think I succeeded on making view come up when the screen is turned on.

However, I am wondering how I can make my app realize user's swipe activity in order to make screen go to the home screen just like the normal android lock screen does.

Any suggestion will be very helpful thx!

有帮助吗?

解决方案

Here are some examples to detect right,left,up and down swipes.You can detect any of the swipes and finish all activities to exit from your app.

Example 1

Example 2

Example 3

You can ask if you have any further queries.Happy coding :)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top