a4d7ad8663e624d46f53ac0e5948348348d82204 |
|
06-Apr-2016 |
Diego Perez <diegoperez@google.com> |
Fix rect shadow detection ViewGroup_Delegate was trying to use a rect shadow even in cases where we needed to use a path. This caused that using a ToggleButton would throw an exception with radius < 0. Also, changed the tests so we can detect certain render errors and ignore other (like known fidelity warnings). Change-Id: I900d45f9efa892ad0aebc8f4ef73fc9f21ab9d92
/frameworks/base/tools/layoutlib/bridge/src/android/view/RectShadowPainter.java
|
0aa004c3cff627167e302d7320629ccb41cab585 |
|
29-Apr-2015 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: fix crash when shadow size <=0. Drawing empty rects results in IllegalArgumentException on Mac JRE 1.6. Prevent that by checking the bounds before attempting to draw the rect. Bug: 20687353 Change-Id: I45f48ee125196480bb6510cc49b24d2122bc3e48
/frameworks/base/tools/layoutlib/bridge/src/android/view/RectShadowPainter.java
|
00c2adf5db17ec2ab8c6709c5afde503cf6ea273 |
|
04-Feb-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Better shadows. Better shadows for rectangles and rounded rectangles (includes circles). The shadow painting code is mostly from CardView library, but modified heavily since CardView needs to draw the shadow inside view bounds. Change-Id: I88c9f19b1c16839b8d6db6df2bebff126fa5a9a3
/frameworks/base/tools/layoutlib/bridge/src/android/view/RectShadowPainter.java
|