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) {
|
||||
Log.w("Canvas", "STUB: drawOval");
|
||||
drawRoundRect(oval, oval.width()/2, oval.height()/2, paint);
|
||||
}
|
||||
|
||||
public void drawColor(int color, PorterDuff.Mode mode) {
|
||||
|
||||
@@ -550,10 +550,10 @@ public class GradientDrawable extends Drawable {
|
||||
}
|
||||
break;
|
||||
case OVAL:
|
||||
/*canvas.drawOval(mRect, mFillPaint);
|
||||
canvas.drawOval(mRect, mFillPaint);
|
||||
if (haveStroke) {
|
||||
canvas.drawOval(mRect, mStrokePaint);
|
||||
}*/
|
||||
}
|
||||
break;
|
||||
case LINE: {
|
||||
RectF r = mRect;
|
||||
|
||||
Reference in New Issue
Block a user