Slide Unlocker ImageView ViewFlipper
问题 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. 来源: https://stackoverflow