Material Shape Utils
Utility methods for MaterialShapeDrawable and related classes.
Functions
Link copied to clipboard
If the background of the provided
view
is a MaterialShapeDrawable, sets the drawable's elevation via setElevation; otherwise does nothing.Link copied to clipboard
If the background of the provided
view
is a MaterialShapeDrawable, sets the drawable's parent absolute elevation (see setParentAbsoluteElevation); otherwise does nothing.open fun setParentAbsoluteElevation(@NonNull view: View, @NonNull materialShapeDrawable: MaterialShapeDrawable)
Updates the
materialShapeDrawable
parent absolute elevation via setParentAbsoluteElevation to be equal to the absolute elevation of the parent of the provided view
.