ConstraintLayout Layout Layout Properties Detailed

app:layout_constraintLeft_toLeftOf

Indicates that the left border of this control is aligned to or to the right of the left border of a control

app:layout_constraintLeft_toRightOf

Indicates that the left border of this control is aligned with or to the right border of a control

app:layout_constraintRight_toLeftOf

Indicates that the right border of this control is aligned with or to the left border of a control

app:layout_constraintRight_toRightOf

Indicates that the right border of this control is aligned with or to the left of the right border of a control

app:layout_constraintTop_toTopOf

Indicates that the top border of this control is horizontally aligned to or below the top border of a control

app:layout_constraintTop_toBottomOf

Indicates that the top border of this control is horizontally aligned with or below the bottom border of a control

app:layout_constraintBottom_toTopOf

Indicates that the bottom border of this control is horizontally aligned with or above the top border of a control

app:layout_constraintBottom_toBottomOf

Indicates that the bottom border of this control is horizontally aligned to or above the bottom border of a control

app:layout_constraintBaseline_toBaselineOf

Indicates that this control is horizontally aligned with a control

app:layout_editor_absoluteX

Represents the absolute coordinate point of this control on the X-axis in the layout.

app:layout_editor_absoluteY

Represents the absolute coordinate point of this control on the Y-axis of the layout

app:layout_constraintGuide_begin

Represents the distance from the top or left border of the lead in the layout (for example, 20dp for 20dp from the top or left border)

app:layout_constraintGuide_end

Represents the distance from the bottom of the lead in the layout (for example, 10dp for 10dp from the top part)

app:layout_constraintGuide_percent

Represents a percentage of the lead distance from the left border in the entire layout (for example, app:layout_constraintGuide_percent="0.5" indicates a 50% distance from the left border)

app:layout_constraintStart_toEndOf

Represents the left boundary of this control to the right of the right boundary of a control, and the right side of a control

app:layout_constraintStart_toStartOf

Indicates that the left boundary of this control is on the same vertical line as the left boundary of a control

app:layout_constraintEnd_toStartOf

Indicates that the right boundary of this control is on the same vertical line as the left boundary of a control

app:layout_constraintEnd_toEndOf

Indicates that the right boundary of this control is aligned with the right boundary of a control

app:layout_constraintHorizontal_bias

Indicates that this control is offset 100 percent horizontally in the layout.

app:layout_constraintVertical_bias

Indicates that the control is offset 100 percent in the vertical direction of the layout.For example, View 16, Code 16

app:layout_constraintDimensionRatio

Represents the aspect ratio of two controls, while using it requires setting the width (layout_width) or height (layout_height) to 0dp to calculate the current properties, such as the display size of two picture controls, app:layout_constraintDimensionRatio="4:3", based on another property and scale;

app:layout_goneMarginLeft
//The left margin to use when the target is gone.

app:layout_goneMarginTop
//The top margin to use when the target is gone.

app:layout_goneMarginRight
//The right margin to use when the target is gone

app:layout_goneMarginBottom
//The bottom margin to use when the target is gone.

app:layout_goneMarginStart
//The start margin to use when the target is gone.

app:layout_goneMarginEnd
//The end margin to use when the target is gone.

Posted by mc2007 on Wed, 15 May 2019 21:44:51 -0700