Package com.pspdfkit.ui.inspector.views
Class PropertyInspectorDividerDecoration
-
- All Implemented Interfaces:
public class PropertyInspectorDividerDecoration extends PropertyInspector.ItemDecoration
PropertyInspector decoration providing simple dividers between items.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
Modifier and Type Method Description void
onDrawOver(@NonNull() Canvas canvas, @NonNull() PropertyInspector parent)
Draw any appropriate decorations into the Canvas supplied to the . void
getItemOffsets(@NonNull() Rect outRect, @NonNull() PropertyInspectorView inspectorView, @NonNull() PropertyInspector parent)
Retrieve offset for the given inspector view. -
-
Constructor Detail
-
PropertyInspectorDividerDecoration
PropertyInspectorDividerDecoration(Context context)
Creates divider decoration with divider defined by theme attribute?listDivider
.- Parameters:
context
- The context to obtain theme attributes from.
-
PropertyInspectorDividerDecoration
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.
-
PropertyInspectorDividerDecoration
PropertyInspectorDividerDecoration(Drawable dividerDrawable)
Creates divider decoration with divider defined by drawable.
-
-
Method Detail
-
onDrawOver
void onDrawOver(@NonNull() Canvas canvas, @NonNull() PropertyInspector parent)
Draw any appropriate decorations into the Canvas supplied to the . This method will draw over already drawn inspector views.
- Parameters:
canvas
- Canvas to draw intoparent
- PropertyInspector we are drawing onto.
-
getItemOffsets
void getItemOffsets(@NonNull() Rect outRect, @NonNull() PropertyInspectorView inspectorView, @NonNull() PropertyInspector parent)
Retrieve offset for the given inspector view.
outRect
represents inset of theinspectorView
when it's drawn. This is similar to padding or margin.- Parameters:
outRect
- Output rectangle.inspectorView
- The child view to decorateparent
- PropertyInspector we are decorating.
-
-
-
-