ConstraintLayout Chains and Text Ellipsis + Image on the Right

UPDATE JULY 2020: What does constrainedWidth/Height do? A lot of people kept asking me what exactly does this constrainedWidth/Height do when set to true (defaults to false). I finally have an answer (from a Google employee), so in lieu of clearing up all the doubts people coming to this post keep having, here’s what I … Read more

How to achieve overlap/negative margin on Constraint Layout?

Update ConstraintLayout now supports negative margins with version 2.1.0-alpha2. Simply state android:layout_marginTop=”-25dp” for a negative 25dp margin. (This will only work if the top of the view is constrained. A margin has no effect in ConstraintLayout if the margin’s side is not constrained.) Clarification: The answer below remains valid, but I want to clarify a … Read more