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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -