Loading tools/layoutlib/bridge/src/android/view/RectShadowPainter.java +3 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,9 @@ public class RectShadowPainter { private static void paintGeometricShadow(@NonNull float[][] coordinates, float lightPosX, float lightPosY, float lightHeight, float lightSize, Canvas canvas) { if (canvas == null || canvas.getWidth() == 0 || canvas.getHeight() == 0) { return; } // The polygon of shadow (same as the original item) float[] shadowPoly = new float[coordinates.length * 3]; Loading Loading
tools/layoutlib/bridge/src/android/view/RectShadowPainter.java +3 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,9 @@ public class RectShadowPainter { private static void paintGeometricShadow(@NonNull float[][] coordinates, float lightPosX, float lightPosY, float lightHeight, float lightSize, Canvas canvas) { if (canvas == null || canvas.getWidth() == 0 || canvas.getHeight() == 0) { return; } // The polygon of shadow (same as the original item) float[] shadowPoly = new float[coordinates.length * 3]; Loading