[android-developers] Re: How to make a mapView transparent?

2011-08-18 Thread marhol682
Good question! The reason for using the MapView is that I'm mapping my
overlays to actual positions on the map. But I don't want to show the
map's visual information. Using a RelativeLayout and doing the
overlaying myself would force my to do all the calculations that the
mapsystem now does for me. Any further suggestions?

/Martin

On 17 Aug, 23:15, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Aug 17, 2011 at 11:05 AM, marhol682

 martin.hol...@themobilelife.com wrote:
  What I need to do is to draw the overlays of a mapView on top of an
  image. However, I don't need any of the visual information that the
  mapView provides, I only want to show the overlays on top of my
  background imageView. Therefor I need to make the mapView itself
  transparent, but at the same time keep the overlays opaque.

 Why are you bothering with the map system if you are not going to use
 the maps? Use RelativeLayout and do the overlaying yourself.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _Android Programming Tutorials_ Version 3.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to make a mapView transparent?

2011-08-17 Thread marhol682
I've been struggling with this problem quite a while now.

What I need to do is to draw the overlays of a mapView on top of an
image. However, I don't need any of the visual information that the
mapView provides, I only want to show the overlays on top of my
background imageView. Therefor I need to make the mapView itself
transparent, but at the same time keep the overlays opaque.

I have therefor subclassed the com.google.android.maps.MapView class
and overriden the dispatchDraw(Canvas canvas) method. Within this
method I call super.dispatchDraw(canvas) and then I call the draw-
method of my overlays. My problem is to make the mapview totally
transparent rather than painting a transparent color on top of it
(canvas.drawPaint()/canvas.drawColor). The overlays are drawn on top
of the color I paint onto the canvas, but I can't get the mapview
itself to become transparent. Anyone who has a solution?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en