Slide Unlocker ImageView ViewFlipper

痞子三分冷 提交于 2019-12-20 07:42:45

问题


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.com/questions/9182515/slide-unlocker-imageview-viewflipper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!