public static class

ToolbarCoordinatorLayout.LayoutParams

extends ViewGroup.LayoutParams
java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ com.pspdfkit.ui.toolbar.ToolbarCoordinatorLayout.LayoutParams

Class Overview

Layout parameters for ContextualToolbars added to ToolbarCoordinatorLayout.

Summary

Nested Classes
enum ToolbarCoordinatorLayout.LayoutParams.Position Possible toolbar positions on the screen. 
[Expand]
Inherited Constants
From class android.view.ViewGroup.LayoutParams
Fields
public static final ToolbarCoordinatorLayout.LayoutParams.Position DEFAULT_POSITION
public EnumSet<ToolbarCoordinatorLayout.LayoutParams.Position> allowedPositions Allowed positions for pinning the toolbar to the sides when dragging.
public ToolbarCoordinatorLayout.LayoutParams.Position forcedPosition Position currently forced on the layout due to the lack of space (if any).
public ToolbarCoordinatorLayout.LayoutParams.Position position Position of the toolbar in the coordinator layout.
[Expand]
Inherited Fields
From class android.view.ViewGroup.LayoutParams
Public Constructors
LayoutParams(ToolbarCoordinatorLayout.LayoutParams.Position position, EnumSet<ToolbarCoordinatorLayout.LayoutParams.Position> allowedPositions)
Creates layout parameters for adding view to the ContextualToolbar.
LayoutParams(ToolbarCoordinatorLayout.LayoutParams.Position position)
Creates layout parameters for adding view to the ContextualToolbar.
[Expand]
Inherited Methods
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

Fields

public static final ToolbarCoordinatorLayout.LayoutParams.Position DEFAULT_POSITION

public EnumSet<ToolbarCoordinatorLayout.LayoutParams.Position> allowedPositions

Allowed positions for pinning the toolbar to the sides when dragging.

public ToolbarCoordinatorLayout.LayoutParams.Position forcedPosition

Position currently forced on the layout due to the lack of space (if any).

public ToolbarCoordinatorLayout.LayoutParams.Position position

Position of the toolbar in the coordinator layout.

Public Constructors

public LayoutParams (ToolbarCoordinatorLayout.LayoutParams.Position position, EnumSet<ToolbarCoordinatorLayout.LayoutParams.Position> allowedPositions)

Creates layout parameters for adding view to the ContextualToolbar.

Parameters
position Position for the toolbar to be set. If this position is not part of the allowedPositions it will be set to one of those, or force changed to some other position in order to fit the screen. This will usually happen if there's not enough room on the sides of the screen, so the toolbar will be force pinned to the top.
allowedPositions Allowed positions for the toolbar. Also visible when dragging the toolbar in possible positions indicators.

public LayoutParams (ToolbarCoordinatorLayout.LayoutParams.Position position)

Creates layout parameters for adding view to the ContextualToolbar.

Parameters
position Position for the toolbar to be set. If this position is not part of the allowedPositions it will be set to one of those, or force changed to some other position in order to fit the screen. This will usually happen if there's not enough room on the sides of the screen, so the toolbar will be force pinned to the top.