Questions tagged [constraint-layout-chains]
67 questions
0
votes
3 answers
Why does my ConstraintLayout chain fail to build?
According to the XML editor my layout should look like:
But in the app it renders as:
I don't understand why the chain feature doesn't work in cases like this. How do I fix it for this instance and how can I generally get a grasp of how to build…

Christian
- 25,249
- 40
- 134
- 225
0
votes
1 answer
How to animate individual view in constraint layout using chain?
I wanted to animate view as shown in the image. How to do it?
Click here to see the image
I have the following code but how to set the parameter current?
How Animation works?
When the user moves his finger over the list of icons, the height of the…

Kavin Raju S
- 1,214
- 2
- 17
- 25
0
votes
3 answers
How to center horizontally 2 vertical views with ConstraintLayout
I am trying to replicate this simple use case in ConstraintLayout. Basically it is 2 views left aligned to each other, but centered within parent.
Without CL, it would be as follows
FrameLayout
match_parent
match_parent
LinearLayout
…

urSus
- 12,492
- 12
- 69
- 89
0
votes
1 answer
0
votes
5 answers
Problems with ConstraintLayout - ImageView 16:9 inappropriate top margin
I want to build the following layout using ConstraintLayout:
I use this source for layout:

Eugene Brusov
- 17,146
- 6
- 52
- 68
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
- 1,021
- 2
- 13
- 28
-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
- 35,076
- 87
- 265
- 471