is it possible to create a MAP for an image?

All your problems with Audio, Video and Images.

is it possible to create a MAP for an image?

Postby dalf » Fri Mar 19, 2010 4:36 am

Hi all,
You guys know about <map> in html?
Let's say "an image map is one image with multiple "clickable" areas." (example here).

Can we do something similar using SDK ?
Or is it possible to get the coordinate of where the user had clicked? (getX and getY)

My situation: I want to display a big picture with multiple clickable areas. So the user can zoom-in, zoom-out and click on what he wants.

Thanks
dalf
Junior Developer
Junior Developer
 
Posts: 17
Joined: Wed Mar 10, 2010 4:23 am

Top

Postby mrco » Fri Mar 19, 2010 2:11 pm

Or is it possible to get the coordinate of where the user had clicked? (getX and getY)

You can define onTouch method (OnTouchListener) and handle all touch events of your view.
mrco
Experienced Developer
Experienced Developer
 
Posts: 71
Joined: Fri Jan 15, 2010 11:31 am
Location: 2V Software

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 16 guests