Add button to overlay

Put your problem here if it does not fit any of the other categories.

Add button to overlay

Postby bluefloyd8 » Sat Mar 15, 2008 5:44 pm

Is it possible to add a button to an overlay class?

For example, I have an overlay class:
public class mymapoverlay extends Overlay {

Which is put over a map (in a map activity):
mapOverlay = new mymapoverlay(this);
moc = map.createOverlayController();
moc.add(mapOverlay, true);
User avatar
bluefloyd8
Experienced Developer
Experienced Developer
 
Posts: 70
Joined: Tue Jan 22, 2008 3:57 am
Location: Indiana, USA

Top

Postby bluefloyd8 » Sat Mar 15, 2008 6:19 pm

To re-clarify my question....

It seems like you have done a lot of tutorials about drawing on an overlay over a map. But I havent seen an easy way to add widgets (Button, etc). Is there a way to draw a button on a canvas perhaps?
User avatar
bluefloyd8
Experienced Developer
Experienced Developer
 
Posts: 70
Joined: Tue Jan 22, 2008 3:57 am
Location: Indiana, USA

Postby bluefloyd8 » Sat Mar 15, 2008 8:49 pm

Ok. I found a way to do it. I call a subactivity and made a custom theme for that activity with a transparent background. This accomplishes the effect of a button over the map.
User avatar
bluefloyd8
Experienced Developer
Experienced Developer
 
Posts: 70
Joined: Tue Jan 22, 2008 3:57 am
Location: Indiana, USA

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google Feedfetcher and 9 guests