Questions tagged [constraint-layout-chains]
62 questions
0
votes
1 answer
How can I create a "square" ConstraintLayout that is included in a chain of widgets?
I try to create a "square" ConstraintLayout by extending the ConstraintLayout class as follows:
class SCConstraintLayout extends android.support.constraint.ConstraintLayout {
public SCConstraintLayout(Context context) {
super(context);
}
public…
ema3272
- 877
- 2
- 10
- 24
-2
votes
1 answer
center 5 items packed in linear layout
I have 5 items.
I want to center all of them horizontally and make them packed to each other.
I know in constraint layout I would create a horizontal chain and app:layout_constraintHorizontal_chainStyle=”packed”
But is it possible to do with…
Elad Benda
- 30,720
- 75
- 234
- 415