BoxInsetLayout.LayoutParams
class BoxInsetLayout.LayoutParams : FrameLayout.LayoutParams
| kotlin.Any | ||||
| ↳ | android.view.ViewGroup.LayoutParams | |||
| ↳ | android.view.ViewGroup.MarginLayoutParams | |||
| ↳ | android.widget.FrameLayout.LayoutParams | |||
| ↳ | androidx.wear.widget.BoxInsetLayout.LayoutParams |
Per-child layout information for layouts that support margins, gravity and boxedEdges. See BoxInsetLayout Layout Attributes for a list of all child view attributes that this class supports. layout_boxedEdges
Summary
Constants |
|
|---|---|
const Int |
BOX_ALL = 15The view will force an inset on all of the edges of the children. |
const Int |
BOX_BOTTOM = 8The view will force an inset on the bottom edge of the children. |
const Int |
BOX_LEFT = 1The view will force an inset on the left edge of the children. |
const Int |
BOX_NONE = 0Default boxing setting. |
const Int |
BOX_RIGHT = 4The view will force an inset on the right edge of the children. |
const Int |
BOX_TOP = 2The view will force an inset on the top edge of the children. |
Public constructors |
|---|
LayoutParams(source: BoxInsetLayout.LayoutParams)Copy constructor. |
LayoutParams(source: FrameLayout.LayoutParams)Copy constructor. |
LayoutParams(source: ViewGroup.LayoutParams)Copy constructor. |
LayoutParams(source: ViewGroup.MarginLayoutParams)Copy constructor. |
LayoutParams(context: Context, attrs: AttributeSet?)Creates a new set of layout parameters. |
LayoutParams(width: Int, height: Int)Creates a new set of layout parameters with the specified width and height. |
LayoutParams(width: Int, height: Int, gravity: Int)Creates a new set of layout parameters with the specified width, height and gravity. |
LayoutParams(width: Int, height: Int, gravity: Int, boxed: Int) |
Public properties |
|
|---|---|
Int |
Specifies the screen-specific insets for each of the child edges. |
Inherited Constants |
||||||
|---|---|---|---|---|---|---|
|
||||||
|
Inherited functions |
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||
|
Inherited properties |
|---|
Constants
BOX_ALL
const val BOX_ALL = 15: Int
The view will force an inset on all of the edges of the children.
BOX_BOTTOM
const val BOX_BOTTOM = 8: Int
The view will force an inset on the bottom edge of the children.
BOX_LEFT
const val BOX_LEFT = 1: Int
The view will force an inset on the left edge of the children.
BOX_NONE
const val BOX_NONE = 0: Int
Default boxing setting. There are no insets forced on the child views.
Public constructors
LayoutParams
LayoutParams(source: BoxInsetLayout.LayoutParams)
Copy constructor. Clones the width, height, margin values, boxedEdges and gravity of the source.
| Parameters | |
|---|---|
source: BoxInsetLayout.LayoutParams |
The layout params to copy from. |
LayoutParams
LayoutParams(source: FrameLayout.LayoutParams)
Copy constructor. Clones the width, height, margin values, and gravity of the source.
| Parameters | |
|---|---|
source: FrameLayout.LayoutParams |
The layout params to copy from. |
LayoutParams
LayoutParams(source: ViewGroup.LayoutParams)
Copy constructor. Clones the width and height of the source.
| Parameters | |
|---|---|
source: ViewGroup.LayoutParams |
The layout params to copy from. |
LayoutParams
LayoutParams(source: ViewGroup.MarginLayoutParams)
Copy constructor. Clones the width, height and margin values.
| Parameters | |
|---|---|
source: ViewGroup.MarginLayoutParams |
The layout params to copy from. |
LayoutParams
LayoutParams(context: Context, attrs: AttributeSet?)
Creates a new set of layout parameters. The values are extracted from the supplied attributes set and context.
| Parameters | |
|---|---|
context: Context |
the application environment |
attrs: AttributeSet? |
the set of attributes from which to extract the layout parameters' values |
LayoutParams
LayoutParams(width: Int, height: Int)
Creates a new set of layout parameters with the specified width and height.
| Parameters | |
|---|---|
width: Int |
the width, either |
height: Int |
the height, either |
LayoutParams
LayoutParams(width: Int, height: Int, gravity: Int)
Creates a new set of layout parameters with the specified width, height and gravity.
| Parameters | |
|---|---|
width: Int |
the width, either |
height: Int |
the height, either |
gravity: Int |
the gravity |
| See also | |
|---|---|
Gravity |
Public properties
boxedEdges
val boxedEdges: Int
Specifies the screen-specific insets for each of the child edges.