setElevation

open fun setElevation(@NonNull view: View, elevation: Float)

If the background of the provided view is a MaterialShapeDrawable, sets the drawable's elevation via setElevation; otherwise does nothing.