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

2011-08-17 Thread Mark Murphy
On Wed, Aug 17, 2011 at 11:05 AM, marhol682
 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/commonsguy
http://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