2.2.0
The new color compat feature is now available in both frameworks to tint shadows on API levels 27 and below. Though the Compose version is currently marked @OptIn, this is really only due to the excess overhead its particular implementation presently entails. The API is frozen, however, and its mechanism is evidently as solid and robust as the main clip functionality.
All of the auxiliary View properties and classes that specify the clip feature in their names – e.g., View.clippedShadowPlane, ClippedShadowDrawable, etc. – have been deprecated and replaced with generalized versions that also work with color compat: View.shadowPlane, ShadowDrawable, etc.
Other new stuff:
-
Styleables have been added for the library's
ViewGroups, so their custom attributes should now resolve when editing layout XML. These should've been there from the start, but I used to think that this wouldn't work, for some reason. -
A
View.forceShadowLayerproperty has been added to handle potential issues with clipped shadows going out of alignment when the parentViewGrouphas a non-identity matrix applied on API levels 24..28. Refer to this wiki page for details. -
The code docs have finally been updated and re-added everywhere. They've also been dokka'd and published separately through github.io.
NB: The consumer ProGuard rules for the layout inflation helpers have been removed, since the feature is currently in limbo. If you happen to be using any, you might need to add a rule manually. Refer to this wiki page for details.