java.lang.Object | |
↳ | com.pspdfkit.ui.inspector.PropertyInspector.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ItemDecoration() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
getItemOffsets(Rect outRect, PropertyInspectorView inspectorView, PropertyInspector parent)
Retrieve offset for the given inspector view.
| ||||||||||
void |
onDraw(Canvas canvas, PropertyInspector parent)
Draw required decorations to canvas supplied to the
PropertyInspector . | ||||||||||
void |
onDrawOver(Canvas canvas, PropertyInspector parent)
Draw any appropriate decorations into the Canvas supplied to the
PropertyInspector . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Retrieve offset for the given inspector view. outRect
represents inset of the
inspectorView
when it's drawn. This is similar to padding or margin.
outRect | Output rectangle. (0, 0, 0, 0) when item's position doesn't need to be modified. |
---|---|
inspectorView | The child view to decorate |
parent | PropertyInspector we are decorating.
|
Draw required decorations to canvas supplied to the PropertyInspector
. This
method will draw before any inspector view is drawn.
canvas | Canvas to draw into |
---|---|
parent | PropertyInspector we are drawing onto.
|
Draw any appropriate decorations into the Canvas supplied to the PropertyInspector
. This method will draw over already drawn inspector views.
canvas | Canvas to draw into |
---|---|
parent | PropertyInspector we are drawing onto.
|