public class

PropertyInspectorDividerDecoration

extends PropertyInspector.ItemDecoration
java.lang.Object
   ↳ com.pspdfkit.ui.inspector.PropertyInspector.ItemDecoration
     ↳ com.pspdfkit.ui.inspector.views.PropertyInspectorDividerDecoration

Class Overview

PropertyInspector decoration providing simple dividers between items.

Summary

Public Constructors
PropertyInspectorDividerDecoration(Context context)
Creates divider decoration with divider defined by theme attribute ?listDivider.
PropertyInspectorDividerDecoration(Context context, AttributeSet attrs)
Creates divider decoration with divider defined by theme attribute ?listDivider.
PropertyInspectorDividerDecoration(Drawable dividerDrawable)
Creates divider decoration with divider defined by drawable.
Public Methods
void getItemOffsets(Rect outRect, PropertyInspectorView inspectorView, PropertyInspector parent)
Retrieve offset for the given inspector view.
void onDrawOver(Canvas canvas, PropertyInspector parent)
Draw any appropriate decorations into the Canvas supplied to the PropertyInspector.
[Expand]
Inherited Methods
From class com.pspdfkit.ui.inspector.PropertyInspector.ItemDecoration
From class java.lang.Object

Public Constructors

public PropertyInspectorDividerDecoration (Context context)

Creates divider decoration with divider defined by theme attribute ?listDivider.

Parameters
context The context to obtain theme attributes from.

public PropertyInspectorDividerDecoration (Context context, AttributeSet attrs)

Creates divider decoration with divider defined by theme attribute ?listDivider.

Parameters
context The context to obtain theme attributes from.
attrs The base set of attribute values. May be null.

public PropertyInspectorDividerDecoration (Drawable dividerDrawable)

Creates divider decoration with divider defined by drawable.

Public Methods

public void getItemOffsets (Rect outRect, PropertyInspectorView inspectorView, PropertyInspector parent)

Retrieve offset for the given inspector view. outRect represents inset of the inspectorView when it's drawn. This is similar to padding or margin.

Parameters
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.

public void onDrawOver (Canvas canvas, PropertyInspector parent)

Draw any appropriate decorations into the Canvas supplied to the PropertyInspector. This method will draw over already drawn inspector views.

Parameters
canvas Canvas to draw into
parent PropertyInspector we are drawing onto.