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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -