Loading tools/layoutlib/bridge/src/android/view/ViewGroup_Delegate.java +7 −2 Original line number Diff line number Diff line Loading @@ -71,8 +71,10 @@ public class ViewGroup_Delegate { int x = 0; if (outline.mRect != null) { Shadow s = getRectShadow(parent, canvas, child, outline); if (s != null) { shadow = s.mShadow; x = -s.mShadowWidth; } } else if (outline.mPath != null) { shadow = getPathShadow(child, outline, canvas); } Loading Loading @@ -132,6 +134,9 @@ public class ViewGroup_Delegate { private static BufferedImage getPathShadow(View child, Outline outline, Canvas canvas) { Rect clipBounds = canvas.getClipBounds(); if (clipBounds.isEmpty()) { return null; } BufferedImage image = new BufferedImage(clipBounds.width(), clipBounds.height(), BufferedImage.TYPE_INT_ARGB); Graphics2D graphics = image.createGraphics(); Loading Loading
tools/layoutlib/bridge/src/android/view/ViewGroup_Delegate.java +7 −2 Original line number Diff line number Diff line Loading @@ -71,8 +71,10 @@ public class ViewGroup_Delegate { int x = 0; if (outline.mRect != null) { Shadow s = getRectShadow(parent, canvas, child, outline); if (s != null) { shadow = s.mShadow; x = -s.mShadowWidth; } } else if (outline.mPath != null) { shadow = getPathShadow(child, outline, canvas); } Loading Loading @@ -132,6 +134,9 @@ public class ViewGroup_Delegate { private static BufferedImage getPathShadow(View child, Outline outline, Canvas canvas) { Rect clipBounds = canvas.getClipBounds(); if (clipBounds.isEmpty()) { return null; } BufferedImage image = new BufferedImage(clipBounds.width(), clipBounds.height(), BufferedImage.TYPE_INT_ARGB); Graphics2D graphics = image.createGraphics(); Loading