Slide Unlocker ImageView ViewFlipper

2019-03-06 19:51发布

问题:

I want to develop an unlocker. You can unlock by sliding to the right (just like on the iPhone).

Wich is the best method to implement this? Should I use a ViewFlipper and a GestureDetector? I have already tried this, but I could slide anywhere on the screen to unlock. The ImageView of the ViewFlipper should slide with my finger and only if my finger is directly on the imageView.

回答1:

Try looking at this question for gestures on images, or any view for that matter.