GridCore
public class GridCore extends VirtualLayout
The Grid Helper in the Core library that helps to enable Grid in Compose
Summary
Constants |
|
---|---|
static final int |
HORIZONTAL = 0 |
static final int |
|
static final int |
|
static final int |
VERTICAL = 1 |
Public methods |
|
---|---|
void |
addToSolver(@Nullable LinearSystem system, boolean optimize) Add this widget to the solver |
@Nullable String |
get the string value of columnWeights |
@Nullable ConstraintWidgetContainer |
get the parent ConstraintWidgetContainer |
int |
getFlags() Get all the flags of a Grid |
float |
get the value of horizontalGaps |
int |
get the value of orientation |
@Nullable String |
get the string value of rowWeights |
float |
get the value of verticalGaps |
void |
measure(int widthMode, int widthSize, int heightMode, int heightSize) |
void |
setColumnWeights(@NonNull String columnWeights) set new columnWeights value and also invoke invalidate |
void |
setColumns(int columns) set new columns value |
void |
setContainer(@NonNull ConstraintWidgetContainer container) Set the parent ConstraintWidgetContainer |
void |
setFlags(int flags) Set flags of a Grid |
void |
setHorizontalGaps(float horizontalGaps) set new horizontalGaps value and also invoke invalidate |
void |
setOrientation(int orientation) set new orientation value |
void |
setRowWeights(@NonNull String rowWeights) set new rowWeights value and also invoke invalidate |
void |
setRows(int rows) set new rows value |
void |
set new skips value |
void |
setSpans(@NonNull CharSequence spans) set new spans value |
void |
setVerticalGaps(float verticalGaps) set new verticalGaps value and also invoke invalidate |
Inherited Constants |
||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited fields |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Inherited methods |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Constants
Public constructors
Public methods
addToSolver
public void addToSolver(@Nullable LinearSystem system, boolean optimize)
Add this widget to the solver
Parameters | |
---|---|
@Nullable LinearSystem system |
the solver we want to add the widget to |
boolean optimize |
true if |
getColumnWeights
public @Nullable String getColumnWeights()
get the string value of columnWeights
getContainer
public @Nullable ConstraintWidgetContainer getContainer()
get the parent ConstraintWidgetContainer
Returns | |
---|---|
@Nullable ConstraintWidgetContainer |
the parent ConstraintWidgetContainer |
getFlags
public int getFlags()
Get all the flags of a Grid
Returns | |
---|---|
int |
an int value containing flag information |
getHorizontalGaps
public float getHorizontalGaps()
get the value of horizontalGaps
Returns | |
---|---|
float |
the value of horizontalGaps |
getOrientation
public int getOrientation()
get the value of orientation
Returns | |
---|---|
int |
the value of orientation |
getRowWeights
public @Nullable String getRowWeights()
get the string value of rowWeights
getVerticalGaps
public float getVerticalGaps()
get the value of verticalGaps
Returns | |
---|---|
float |
the value of verticalGaps |
setColumnWeights
public void setColumnWeights(@NonNull String columnWeights)
set new columnWeights value and also invoke invalidate
setColumns
public void setColumns(int columns)
set new columns value
Parameters | |
---|---|
int columns |
new rows value |
setContainer
public void setContainer(@NonNull ConstraintWidgetContainer container)
Set the parent ConstraintWidgetContainer
Parameters | |
---|---|
@NonNull ConstraintWidgetContainer container |
the parent ConstraintWidgetContainer |
setFlags
public void setFlags(int flags)
Set flags of a Grid
Parameters | |
---|---|
int flags |
an int value containing flag information |
setHorizontalGaps
public void setHorizontalGaps(float horizontalGaps)
set new horizontalGaps value and also invoke invalidate
Parameters | |
---|---|
float horizontalGaps |
new horizontalGaps value |
setOrientation
public void setOrientation(int orientation)
set new orientation value
Parameters | |
---|---|
int orientation |
new orientation value |
setRowWeights
public void setRowWeights(@NonNull String rowWeights)
set new rowWeights value and also invoke invalidate
setRows
public void setRows(int rows)
set new rows value
Parameters | |
---|---|
int rows |
new rows value |
setSpans
public void setSpans(@NonNull CharSequence spans)
set new spans value
Parameters | |
---|---|
@NonNull CharSequence spans |
new spans value |
setVerticalGaps
public void setVerticalGaps(float verticalGaps)
set new verticalGaps value and also invoke invalidate
Parameters | |
---|---|
float verticalGaps |
new verticalGaps value |