문제

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