Hi,
I'm trying to draw a circle on a MapView.
I created my own drawble object to be passed to an ItemizedOverlay
class MyDrawableMarker extends Drawable{
@Override
public void draw(Canvas canvas) {
Paint p = new Paint();
p.setColor(Color.RED);
p.setStyle(Paint.Style.FILL);
p.setAntiAlias(true);
p.setAlpha(100);
canvas.drawCircle(0, 0, 100, p);
}
@Override
public int getOpacity() {
return PixelFormat.TRANSPARENT ;
}
@Override
public void setAlpha(int alpha) {
}
@Override
public void setColorFilter(ColorFilter cf) {
}};
It works find but the drawCircle call also draw a elipse, and if a try
to draw a rectangle, an extra rectangle it also draw.
Is it a 2D/3D configuration problem?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en