android - ConstraintLayout views in top left corner -


every time create views button , textview in constraintlayout, stuck @ top corner instead of placed them.

i tried create new activities , change emulator, result still same.

this screenshot of what's happening:

enter image description here

what may issue?

as stated in constraint layout guides:

if view has no constraints when run layout on device, drawn @ position [0,0] (the top-left corner).

you must add @ least 1 horizontal , 1 vertical constraint view.

i guess haven't applied constraints.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -