ViewOutlineProvider


public abstract class ViewOutlineProvider
extends Object

java.lang.Object
   ↳ android.view.ViewOutlineProvider


Interface by which a View builds its Outline, used for shadow casting and clipping.

Summary

Fields

public static final ViewOutlineProvider BACKGROUND

Default outline provider for Views, which queries the Outline from the View's background, or generates a 0 alpha, rectangular Outline the size of the View if a background isn't present.

public static final ViewOutlineProvider BOUNDS

Maintains the outline of the View to match its rectangular bounds, at 1.0f alpha.

public static final ViewOutlineProvider PADDED_BOUNDS

Maintains the outline of the View to match its rectangular padded bounds, at 1.0f alpha.

Public constructors

ViewOutlineProvider()

Public methods

abstract void getOutline(View view, Outline outline)

Called to get the provider to populate the Outline.

Inherited methods