Pregunta

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!

¿Fue útil?

Solución

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 :)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top