O
O
open0322018-05-25 13:13:12
Android
open032, 2018-05-25 13:13:12

How to go to the previous Activity with a swipe of a finger?

The task is to go to the previous page by moving your finger across the screen from right to left. What is it called when you swipe your finger across the screen like that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Perelygin, 2018-05-28
@orcDamnar

Well, the task is not very trivial. Maybe you didn't describe it correctly? There are 2 types of finger movements on the screen: swipe and fling. They can be caught through the GestureDetector. You can also make a custom viewpager that will work with fragments as a stack and when an empty one goes up the activity stack ... In general, a lot of options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question