Android Layout editor ConstraintLayout

Please check ConstraintLayout here:

https://developer.android.com/training/constraint-layout/index.html

When you drop a view into the Layout Editor, it stays where you leave
it even if it has no constraints. However, this is only to make
editing easier; if a view has no constraints when you run your layout
on a device, it is drawn at position [0,0] (the top-left corner).

In other words, it means you must add at least one horizontal and one vertical constraint for the view

Leave a Comment