ClippedShadowDrawable

Deprecated

Replaced by ShadowDrawable

Replace with

import com.zedalpha.shadowgadgets.view.drawable.ShadowDrawable
ShadowDrawable

Replaced by ShadowDrawable in the drawable subpackage

Constructors

Link copied to clipboard
constructor(ownerView: View)

The base constructor for all API levels requires an ownerView in order to be able to hook into the hardware-accelerated draw routine.

@RequiresApi(value = 29)
constructor()

At API level 29, no View is needed.

Functions

Link copied to clipboard
fun setPathProvider(provider: (Path) -> Unit)

Sets the function through which to provide irregular Paths for clipping on API levels 30 and above.