ItemDecoration

abstract class ItemDecoration

An ItemDecoration allows the application to add custom drawing to specific inspector views. This can be useful for drawing dividers between items, highlights etc.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getItemOffsets(@NonNull outRect: Rect, @NonNull inspectorView: PropertyInspectorView, @NonNull parent: PropertyInspector)
Retrieve offset for the given inspector view.
Link copied to clipboard
open fun onDraw(@NonNull canvas: Canvas, @NonNull parent: PropertyInspector)
Draw required decorations to canvas supplied to the PropertyInspector.
Link copied to clipboard
open fun onDrawOver(@NonNull canvas: Canvas, @NonNull parent: PropertyInspector)
Draw any appropriate decorations into the Canvas supplied to the .