I need to be able to display different Toast messages to the user based on what object he clicks on inside an image. For example, if we have an image with different types of animals, I need to display the name of the animal based on where the user touches the image.
Would it be possible to add another Views such as ImageButtons on top of the ImageView at specific locations? The problem here is that some images are big enough and should be added to a ScrollView. So would this implementation slow down the app?
So I am asking here exactly at best practices.
Any help is much appreciated!!
Related
I need to create the markups on image view that should look like the markings Instagram. The client should click on some position on the image, enter some text and save it.
For now, the only solution that I see is :
Get click position in the onToch event.
Dynamically put some edit boxes to this position.
Save the text and coordinates.
However, I don't know yet how this will work on different screen sizes.
Since I'm mostly web developer and definitely don't now all android capabilities I hope someone with experience will give me advice. Maybe there some widgets for this task, or algorithm for counting position?
I am working on an application in which I need to implement Hot Spot kind of thing. Hot Spot is actually an image having different sections in it, when user clicks on different portions of that image it will reflect in different results accordingly, so my problem is that how can I get the click of these different portions which are present in the single Image, also if I get the X-Coordinates and Y-Coordinates of the same Image then how should I maintain it in different screen resolution. I am displaying a demo image with my question
Here its a single image, now I just want to get click of the four section displayed here, for e.g. if I click on section no.4 I can show another image etc.
Please help me to sort this out, any help would be appreciable.
Thank you.
Finally I found a library for this, though it does lot more than what I want to achieve but its good to use this one.
https://github.com/chrisbanes/PhotoView
In my android project I have 50 small images that need to be dragged and dropped in three big images.I set that three big images as the background of three different relative layouts.Now I want to restrict the dropped area in all three big images and also want to get the dropped place which will be later used when user came to the same page next time.I dont know how to begin and where to begin?Can anyone help me?I want the dropped place and also restrict the place of dropped....
Thanks!!
I'm trying to crate custom map in my application, the needed map is not Google map, its consists of image and small pins images, in other word its image view,,, i need to set buttons on this image in specific locations, and wen these buttons clicked , i need to perform some action, the problem is i didn't found a way makes me able to set buttons on this image at run time, the image and the buttons locations will be received from the server side, so i need to create this custom map at run time. maybe i need to set the buttons on specific pixels, but i don't know how i can reach specific pixels in the image, i appreciate any help in this. thank you all.
Please see above image. My requirement is I should able to detect whether on which number I have clicked. This is single image.
use transparent textviews and place them above the numbers and implement their actionlistenerr. But you have to tackle multiple screens resolutions.