LayoutParams

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.


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.