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.

ConstraintLayout max width percentage

I've been experimenting with ConstraintLayout, is there a way to set the max width of a view to a percentage …

android android-layout android-studio android-constraintlayout
Set aspect ratio programmatically for imageView

I have a problem with showing a landscape image without centerCrop. I tried PercentFramelayout, and set aspect ratio programmatically like …

android aspect-ratio android-constraintlayout
how to MODIFY a constraint layout programmatically?

Ive got a view like below : <org.rayanmehr.atlas.shared.customview.CustomTextView android:id="@+id/tvDownVoteCount" android:layout_width="…

android android-constraintlayout
app:layout_marginBottom is not working well with android constraint layout

Is there any reason why the following layout_marginBottom is not working? However, if I use layout_marginTop on the …

android margin android-constraintlayout
ConstraintLayout with Barriers; How to constraint to bottom / top of barrier depending on size

I am trying out the new Barrier feature in the 1.1.0-beta1. It works as expected however there is this use-case …

android viewgroup android-constraintlayout
Constraint layout Layout Crashing : All Children of constraint layout should have ids to use constraint set

After updating to com.android.support.constraint:constraint-layout:1.1.0 The constraint layout crashes saying: All children of constraint layout should have …

android android-constraintlayout
How to add Chains feature of constraint layout with design in android studio

I have two images in constraint layout. I want to use chains feature with design page in android studio but …

android-constraintlayout constraint-layout-chains
ConstraintLayout: set height of all views in row to match the tallest one

I'm trying to utilize a ConstraintLayout (version 1.0.2) to set the height of 2 side-by-side views to match the tallest one of …

android android-constraintlayout
ConstraintLayout: Unable to scale image to fit a ratio in RecyclerView

I have a recycler view with StaggeredGridLayoutManager. Within in I have custom items/views. Each item is defined as a …

android android-recyclerview aspect-ratio android-constraintlayout