GridReference
public class GridReference extends HelperReference
| java.lang.Object | |||
| ↳ | androidx.constraintlayout.core.state.ConstraintReference | ||
| ↳ | androidx.constraintlayout.core.state.HelperReference | ||
| ↳ | androidx.constraintlayout.core.state.helpers.GridReference |
A HelperReference of a Grid Helper that helps enable Grid in Compose
Summary
Public constructors |
|---|
GridReference(@NonNull State state, @NonNull State.Helper type) |
Public methods |
|
|---|---|
void |
apply()Apply all the attributes to the helper widget (Grid) |
@Nullable String |
Get the column weights |
int |
Get the number of columns |
int |
getFlags()Get all the flags of a Grid |
@NonNull HelperWidget |
Get the helper widget (Grid) |
float |
Get the horizontal gaps |
int |
Get the Orientation |
int |
get padding bottom |
int |
get padding right |
int |
get padding left |
int |
get padding top |
@Nullable String |
Get the row weights |
int |
Get the number of rows |
@Nullable String |
getSkips()Get the skips |
@Nullable String |
getSpans()Get the spans |
float |
Get the vertical gaps |
void |
setColumnWeights(@NonNull String columnWeights)Set the column weights |
void |
setColumnsSet(int columnsSet)Set the number of columns |
void |
setFlags(int flags)Set flags of a Grid |
void |
Set flags of a Grid |
void |
setHelperWidget(@Nullable HelperWidget widget)Set the helper widget (Grid) |
void |
setHorizontalGaps(float horizontalGaps)Set the horizontal gaps |
void |
setOrientation(int orientation)Set the Orientation |
void |
setPaddingBottom(int paddingBottom)set padding bottom |
void |
setPaddingEnd(int paddingEnd)set padding right |
void |
setPaddingStart(int paddingStart)set padding left |
void |
setPaddingTop(int paddingTop)set padding top |
void |
setRowWeights(@NonNull String rowWeights)Set the row weights |
void |
setRowsSet(int rowsSet)Set the number of rows |
void |
Set the skips |
void |
Set the spans |
void |
setVerticalGaps(float verticalGaps)Set the vertical gaps |
Inherited fields |
|---|
Public constructors
Public methods
getColumnsSet
public int getColumnsSet()
Get the number of columns
| Returns | |
|---|---|
int |
the number of columns |
getFlags
public int getFlags()
Get all the flags of a Grid
| Returns | |
|---|---|
int |
an int value containing flag information |
getHelperWidget
public @NonNull HelperWidget getHelperWidget()
Get the helper widget (Grid)
| Returns | |
|---|---|
@NonNull HelperWidget |
the helper widget (Grid) |
getHorizontalGaps
public float getHorizontalGaps()
Get the horizontal gaps
| Returns | |
|---|---|
float |
the horizontal gaps |
getOrientation
public int getOrientation()
Get the Orientation
| Returns | |
|---|---|
int |
the Orientation |
getPaddingBottom
public int getPaddingBottom()
get padding bottom
| Returns | |
|---|---|
int |
padding bottom |
getPaddingStart
public int getPaddingStart()
get padding left
| Returns | |
|---|---|
int |
padding left |
getRowsSet
public int getRowsSet()
Get the number of rows
| Returns | |
|---|---|
int |
the number of rows |
getVerticalGaps
public float getVerticalGaps()
Get the vertical gaps
| Returns | |
|---|---|
float |
the vertical gaps |
setColumnWeights
public void setColumnWeights(@NonNull String columnWeights)
Set the column weights
setColumnsSet
public void setColumnsSet(int columnsSet)
Set the number of columns
| Parameters | |
|---|---|
int columnsSet |
the number of columns |
setFlags
public void setFlags(int flags)
Set flags of a Grid
| Parameters | |
|---|---|
int flags |
an int value containing flag information |
setHelperWidget
public void setHelperWidget(@Nullable HelperWidget widget)
Set the helper widget (Grid)
| Parameters | |
|---|---|
@Nullable HelperWidget widget |
the helper widget (Grid) |
setHorizontalGaps
public void setHorizontalGaps(float horizontalGaps)
Set the horizontal gaps
| Parameters | |
|---|---|
float horizontalGaps |
the horizontal gaps |
setOrientation
public void setOrientation(int orientation)
Set the Orientation
| Parameters | |
|---|---|
int orientation |
the Orientation |
setPaddingBottom
public void setPaddingBottom(int paddingBottom)
set padding bottom
| Parameters | |
|---|---|
int paddingBottom |
padding bottom to be set |
setPaddingEnd
public void setPaddingEnd(int paddingEnd)
set padding right
| Parameters | |
|---|---|
int paddingEnd |
padding right to be set |
setPaddingStart
public void setPaddingStart(int paddingStart)
set padding left
| Parameters | |
|---|---|
int paddingStart |
padding left to be set |
setPaddingTop
public void setPaddingTop(int paddingTop)
set padding top
| Parameters | |
|---|---|
int paddingTop |
padding top to be set |
setRowWeights
public void setRowWeights(@NonNull String rowWeights)
Set the row weights
setRowsSet
public void setRowsSet(int rowsSet)
Set the number of rows
| Parameters | |
|---|---|
int rowsSet |
the number of rows |
setVerticalGaps
public void setVerticalGaps(float verticalGaps)
Set the vertical gaps
| Parameters | |
|---|---|
float verticalGaps |
the vertical gaps |