Reputation: 145
I'm creating a rectangle and it's showing perfectly, but I can't delete the stroke border
mPaint = new Paint();
mPaint.setAntiAlias(true);
mPaint.setFilterBitmap(true);
mPaint.setStyle(Paint.Style.STROKE);
mPaint.setStrokeWidth(0.0f);
mPaint.setColor(Color.WHITE);
I'm setting the Stroke Width to 0.0f, but it is still showing a really thin line. How can I delete it?
Upvotes: 0
Views: 1977
Reputation: 28229
change mPaint.setStyle(Paint.Style.STROKE);
to mPaint.setStyle(Paint.Style.FILL);
and remove the line that sets the stroke width.
see: http://developer.android.com/reference/android/graphics/Paint.Style.html
Upvotes: 1