ImageButton on the map

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

ImageButton on the map

Postby Eagle Eye » Thu Jun 17, 2010 1:53 am

How to add ImageButton on the map and add listener to it? ItemizedOverlay will be the solution?
Eagle Eye
Junior Developer
Junior Developer
 
Posts: 14
Joined: Sun May 23, 2010 6:38 am

Top

Re: ImageButton on the map

Postby JKumar » Thu Jun 17, 2010 10:39 am

Hi,

Why you want to add image button on the map?

ItemizedOverlay itself provides markers(images) which are a type of listener object on the map and you can do what you want using onTap in the ItemizedOverlay.

You can find a lot of example on this forum and even the developer site had explained it in detail.
Hope the suggestion helps you
Keep posting .It makes us better to understand Android
User avatar
JKumar
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Thu May 13, 2010 8:17 am
Location: INDIA

Re: ImageButton on the map

Postby Eagle Eye » Fri Jun 18, 2010 11:40 am

I want to add Button which will be always in the same place on the Map for eg. in the left top corner. Somethng like zoom in/out on on bottom of the map.
Eagle Eye
Junior Developer
Junior Developer
 
Posts: 14
Joined: Sun May 23, 2010 6:38 am

Re: ImageButton on the map

Postby JKumar » Fri Jun 18, 2010 1:24 pm

HI,

You can achieve this by adding a view(with a button) to the parent view suitable adjusting the layout parameters wherever you want on the screen.
Hope the suggestion helps you
Keep posting .It makes us better to understand Android
User avatar
JKumar
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Thu May 13, 2010 8:17 am
Location: INDIA

Re: ImageButton on the map

Postby Eagle Eye » Fri Jun 18, 2010 5:14 pm

Thx man but I resolve his problem using <FrameLayout><image><map><FrameLayout> :)
Eagle Eye
Junior Developer
Junior Developer
 
Posts: 14
Joined: Sun May 23, 2010 6:38 am

Top

Return to Map Problems

Who is online

Users browsing this forum: Google Feedfetcher and 1 guest