Package com.pspdfkit.ui.overlay
Class OverlayLayoutParams
-
- All Implemented Interfaces:
public class OverlayLayoutParams extends ViewGroup.LayoutParams
Layout parameters for overlay views. Use these layout parameters when adding views to a PDF page using an OverlayViewProvider. To learn more about overlay views and how to use them, please refer to our online guide: https://pspdfkit.com/guides/android/current/features/overlay-views/
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
OverlayLayoutParams.SizingMode
Value used for defining how measuring and layouting of the view will work.
public enum
OverlayLayoutParams.LayoutPosition
Value used for defining whether to layout view around its center or from its top-left corner. This is used when the noZoom flag is set or the fixedScreenSize is configured, to determine how to position the view inside the pageRect.
-
Field Summary
Fields Modifier and Type Field Description public final PageRect
pageRect
public Size
fixedScreenSize
public boolean
noZoom
public Size
minSize
public final OverlayLayoutParams.SizingMode
sizingMode
public OverlayLayoutParams.LayoutPosition
layoutPosition
-
Constructor Summary
Constructors Constructor Description OverlayLayoutParams(PageRect pageRect, OverlayLayoutParams.SizingMode sizingMode)
Height and width are standard LayoutParams values (i.e. OverlayLayoutParams(RectF pageRect, OverlayLayoutParams.SizingMode sizingMode)
OverlayLayoutParams()
Creates params with an empty pageRect (i.e.
-
Method Summary
Modifier and Type Method Description -
-
Constructor Detail
-
OverlayLayoutParams
OverlayLayoutParams(PageRect pageRect, OverlayLayoutParams.SizingMode sizingMode)
Height and width are standard LayoutParams values (i.e.- Parameters:
pageRect
- holding the PDF and display coordinates of the view.sizingMode
- defines the coordinate space used for layouting.
-
OverlayLayoutParams
OverlayLayoutParams(RectF pageRect, OverlayLayoutParams.SizingMode sizingMode)
- Parameters:
pageRect
- holding the PDF and display coordinates of the view.sizingMode
- defines the coordinate space used for layouting.
-
OverlayLayoutParams
OverlayLayoutParams()
Creates params with an empty pageRect (i.e.
-
-
-
-