Top "Android-constraintlayout" questions

A new type of layout available in the Android Support repository built on top of a flexible constraint system, marking views positions relative to each other.

Align views right in ConstraintLayout without clipping

I am creating a dialog with two buttons aligned right in relation to the parent ConstraintLayout. Everything is fine, until …

android android-layout android-constraintlayout constraint-layout-chains
How to group multiple views in a ConstraintLayout

I have added 3 buttons in a ConstraintLayout. I have added a button to disable or enable these buttons. If I …

android performance android-layout android-linearlayout android-constraintlayout
RecyclerView in ConstraintLayout overlapping other elements

I'm doing a simple list activity with the following components: an EditText, a RecyclerView, a ProgressBar and a Textview. Everything …

android android-layout android-recyclerview android-constraintlayout
Programmatically set margin to ConstraintLayout

I need to change margin of toolbar, which was made of ConstraintLayout, in different cases. I tried to do it …

android android-constraintlayout
How to position below the lowest of two views in ConstraintLayout?

I have two header views, HeaderViewA and HeaderViewB. These views can have any combination of visibility visible or gone. I …

android android-layout android-support-library android-constraintlayout
ClassNotFoundException: Didn't find class "android.support.constraint.ConstraintLayout" on path

I was working with some libraries so I had to edit Gradle settings. Since my app wasn't working, I restored …

android android-constraintlayout
How to set a maximum width for a view in an android constraintLayout?

I have a layout that looks like this: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:…

android android-layout android-constraintlayout
marginTop does not work with ConstraintLayout and wrap_content

In my Fragment I have a ConstraintLayout with layout_height="wrap_content" and I would like to have a margin …

android android-layout android-xml android-constraintlayout android-wrap-content
Use group in ConstraintLayout to listen for click events on multiple views

Basically I'd like to attach a single OnClickListener to multiple views inside a ConstraintLayout. Before migrating to the ConstraintLayout the …

android kotlin android-constraintlayout
Is it advisable to use LinearLayout inside ConstraintLayout in Android?

I am new to ConstraintLayout in Android and newbie to Android too. I have a question. Is it advisable to …

android android-constraintlayout