I haven't posted this as a bug because it is so basic I can only think
that there must be something that I am missing.

Basically the FILL_AND_STROKE style is not respected for rectangles.

Steps to reproduce:
0. Using Cupcake 1.5 (android-sdk-mac_x86-1.5_r3) (problem occurs on
emulator and on Android G1 dev phone)
1. Create a custom view, extending/deriving from View.
2. Create an onDraw method like the following code.

@Override
protected void onDraw(final Canvas canvas)
{
        super.onDraw(canvas);

        final Paint paint = new Paint();
        paint.setAntiAlias(true);
        paint.setColor(android.graphics.Color.BLUE);
        paint.setStyle(Paint.Style.FILL_AND_STROKE);
        canvas.drawRect(0, 0, 100, 100, paint);
        canvas.drawCircle(110 + 50, 110 + 50, 50, paint);
}

What you will see is a rectangle that is stroked but NOT filled and a
circle that is stroked AND filled appropriately.

Since this is a basic drawing operation I can only surmise that there
must be an additional step to drawing rectangles that is not
documented. I cannot seem to find any reference to this problem as an
open issue or posted anywhere.

So would someone mind pointing me at the problem? Or is it a bug that
has just somehow slipped through?

Thanks in advance for your response,

Keith

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to