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.

How to programmatically add views and constraints to a ConstraintLayout?

I'm having a problem to programmatically add views to a ConstraintLayout, and set up all the constraints required for the …

java android android-layout android-constraintlayout
ConstraintLayout views in top left corner

Every time I create views like Button and TextView in ConstraintLayout, they all get stuck at the top corner instead …

android android-layout android-view android-constraintlayout view-hierarchy
ConstraintLayout: how to have a view be half the screen width and centered?

TL;DR The view width must be exactly half of the screen, and be centered. Using ConstraintLayout. Note that the …

android android-constraintlayout
No resource identifier found for attribute 'layout_constraintLeft_toLeftOf' in package

I am using the Android SDK 2.2.3. I am following a book on programming Android. The code is: <android.support.…

android android-layout android-studio android-constraintlayout
Scrollview inside constraint layout does not scroll to the bottom of the parent constraint

I have a form which has around 12/13 fields. I used a Scrollview inside a constraint layout. Below is the hierarchy …

android android-layout constraints scrollview android-constraintlayout
Change Guideline percentage in constraint layout programmatically

I have a guideline in constraint layout like this <android.support.constraint.Guideline android:layout_width="wrap_content" android:…

android android-constraintlayout
How to use the new Android Constraint Layout to reduce View hierarchy

Do you have any idea on how to use the new Constraint Layout that was recently announced at this year's …

android android-layout android-studio android-studio-2.2 android-constraintlayout
Removing/Adding constraint programmatically in ConstraintLayout

I want to remove and add constraint programmatically based on some condition. Here are the screenshots: and I want to …

android android-layout android-constraintlayout android-layoutparams
ConstraintLayout vs Coordinator layout?

What to implement: ConstraintLayout or CoordinatorLayout for proper material design in android ?

android material-design android-constraintlayout coordinator-layout
How to add different weight to ConstraintLayout views

In my layout, I have a ConstraintLayout containing two TextView elements. They are currently the same size, but I would …

android android-layout android-constraintlayout