I have a ConstraintLayout as my main layout. Inside it, I have a CoordinatorLayout. I want to know if ever will I be able to constrain the views I put inside the CoordinatorLayout.
Thanks in advance
No. You can only constrain views that are direct children of the ConstraintLayout
.
It isn't specifically CoordinatorLayout
that makes you unable to do this. Any view you put inside a ConstraintLayout
(other than another ConstraintLayout) won't be able to apply constraints.
Any app:layout_constraint...
attribute you apply to any view that doesn't have a ConstraintLayout
as its immediate parent will simply be ignored.