Questions tagged [constraintlayout-guideline]

19 questions
0
votes
4 answers

Constraint layout Guideline java.lang.AssertionError: BOTTOM

I have an ImageView and I want it to have height of the 40% of the screen height. I am trying to accomplish it by constraint layout's guidelines, but I get runtime error "java.lang.AssertionError: BOTTOM". I think the error is that image becomes…
0
votes
1 answer

Constrain Layout top views get disturbed when keyboard gets opened guideline percent does not works

I tried windowSoftInputMode in manifest nothing worked the views get pushed up when the keyboard is opened I tried different approaches but none of them worked. The recycler view collapses with the edit text but it is below the guide line separator.…
0
votes
1 answer

Adding a textview in a constraint layout inside a recycler view shorten the constraint layout width

I have a recycler view (dependency is com.android.support:recyclerview-v7:28.0.0) inside a constraint layout (dependency is androidx.constraintlayout:constraintlayout:2.0.0-beta4) and the item for this recycler view is another constraint layout. The…
-2
votes
2 answers

How to set height of a view in percent using ConstraintLayout

Currently I'm learning ConstraintLayout below is my code that i have tried so far
1
2