vecino Well-Known Member Licensed User Longtime User Sep 6, 2020 #1 Hello, is it possible to know in which position a user has touched the image of a zoomimageview? To check, for example, the color of the point where he has touched. Thank you.
Hello, is it possible to know in which position a user has touched the image of a zoomimageview? To check, for example, the color of the point where he has touched. Thank you.
toby Well-Known Member Licensed User Longtime User Sep 7, 2020 #2 This one might help: https://www.b4x.com/android/forum/t...tion-on-views-that-consume-touch-event.15764/ Upvote 0
This one might help: https://www.b4x.com/android/forum/t...tion-on-views-that-consume-touch-event.15764/
Erel B4X founder Staff member Licensed User Longtime User Sep 7, 2020 #3 Check the source code (unzip the b4xlib). You can get the coordinates with some modifications. Upvote 0
vecino Well-Known Member Licensed User Longtime User Sep 7, 2020 #4 I didn't know that b4xlib are zip. Every day I learn something. Upvote 0
vecino Well-Known Member Licensed User Longtime User Sep 7, 2020 #5 toby said: This one might help: https://www.b4x.com/android/forum/t...tion-on-views-that-consume-touch-event.15764/ Click to expand... Thank you for your response. I have it made that way and it works perfectly. The thing is that now I wanted to do it with B4Xpages and ZoomImageView, but I don't know how to extract the color from the position where the user clicks. Upvote 0
toby said: This one might help: https://www.b4x.com/android/forum/t...tion-on-views-that-consume-touch-event.15764/ Click to expand... Thank you for your response. I have it made that way and it works perfectly. The thing is that now I wanted to do it with B4Xpages and ZoomImageView, but I don't know how to extract the color from the position where the user clicks.
vecino Well-Known Member Licensed User Longtime User Sep 7, 2020 #6 Erel said: Check the source code (unzip the b4xlib). You can get the coordinates with some modifications. Click to expand... I have declared a couple of global variables and I can already know in which position (x,y) the user has clicked. Now I want to know the color of that position, but at the moment I don't know how to do it. Thank you. Upvote 0
Erel said: Check the source code (unzip the b4xlib). You can get the coordinates with some modifications. Click to expand... I have declared a couple of global variables and I can already know in which position (x,y) the user has clicked. Now I want to know the color of that position, but at the moment I don't know how to do it. Thank you.