FileDocCategorySizeDatePackage
ViewOutlineProvider.javaAPI DocAndroid 5.1 API3262Thu Mar 12 22:22:10 GMT 2015android.view

ViewOutlineProvider

public abstract class ViewOutlineProvider extends Object
Interface by which a View builds its {@link Outline}, used for shadow casting and clipping.

Fields Summary
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. This can be used to enable Views that are opaque but lacking a background cast a shadow.
public static final ViewOutlineProvider
PADDED_BOUNDS
Maintains the outline of the View to match its rectangular padded bounds, at 1.0f alpha. This can be used to enable Views that are opaque but lacking a background cast a shadow.
Constructors Summary
Methods Summary
public abstract voidgetOutline(View view, android.graphics.Outline outline)
Called to get the provider to populate the Outline. This method will be called by a View when its owned Drawables are invalidated, when the View's size changes, or if {@link View#invalidateOutline()} is called explicitly. The input outline is empty and has an alpha of 1.0f.

param
view The view building the outline.
param
outline The empty outline to be populated.