-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotation Gesture Detector Only works with Single ImageView. #5
Comments
Did you set different OnTouchListener instances for the two ImageViews? Can't see why it wouldn't work, but also don't know how you setup your classes. |
I had a similar issue. Problem was that TwoFingerGestureDetecture.getRaw Y was returning a negative value which would discard everything in the RotateGestureDetector has sloppy gesture. Returning simply event.getRawY() has resolved my issue. So, for those having the issue, just replace in TwoFingerGestureDetector.java: |
I have more images on 1 Activity, but I can only touch on top image. I dont want process if touch outside of image. Please help. |
@gmavenis You can try my solution, it works for me. Let me know. |
Did you guys solve this issue somehow? |
Anyway, I've made a fork that has this issue fixed: |
Still not worked for more then one images |
@airtel121 Have you tried my fork ? |
Yes i replace TwoFingerGestureDetector.java from your fork.But only upper image is sensing the touch i set width and height to fill_parent so. |
How to archive functionality for example if i have two image inside FrameLayout having width and height set to fill_parent. |
First, you should avoid setting them both to fill_parent. Use wrap_content or a fixed sized. Not exactly what you want, but you can modify it to your needs. |
Fixed and tested on my fork |
If I created Two ImageView instances in Single Activity and Attach Separate Instances of Rotation Gesture Detector to them the Only Rotation Listener for First ImageView Is Working Second Image's Rotation Gestures are not being able to detect .Please provide some solution to that its been 8 hours I am searching for solution.
Thanks.
The text was updated successfully, but these errors were encountered: