If the radius is 0, do not try to paint the shadow. In some views, a 0 radius for the outline might be returned causing an exception when painting the gradient. In those cases, simply disable the shadow. Bug: http://b.android.com/207664 Change-Id: Idb937083d42ca02bbace843b881f61aa88fe47f2 (cherry picked from commit 5bc40214817fc6bd4ee541763d40522ae94f1d82)
Layoutlib is a custom version of the android View framework designed to run inside Eclipse. The goal of the library is to provide layout rendering in Eclipse that are very very close to their rendering on devices. None of the com.android.* or android.* classes in layoutlib run on devices.