You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
GradientDrawable: support oval shape
This commit is contained in:
@@ -480,7 +480,7 @@ public class Canvas {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void drawOval(RectF oval, Paint paint) {
|
public void drawOval(RectF oval, Paint paint) {
|
||||||
Log.w("Canvas", "STUB: drawOval");
|
drawRoundRect(oval, oval.width()/2, oval.height()/2, paint);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void drawColor(int color, PorterDuff.Mode mode) {
|
public void drawColor(int color, PorterDuff.Mode mode) {
|
||||||
|
|||||||
@@ -550,10 +550,10 @@ public class GradientDrawable extends Drawable {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case OVAL:
|
case OVAL:
|
||||||
/*canvas.drawOval(mRect, mFillPaint);
|
canvas.drawOval(mRect, mFillPaint);
|
||||||
if (haveStroke) {
|
if (haveStroke) {
|
||||||
canvas.drawOval(mRect, mStrokePaint);
|
canvas.drawOval(mRect, mStrokePaint);
|
||||||
}*/
|
}
|
||||||
break;
|
break;
|
||||||
case LINE: {
|
case LINE: {
|
||||||
RectF r = mRect;
|
RectF r = mRect;
|
||||||
|
|||||||
Reference in New Issue
Block a user