ConstraintLayout views in top left corner

前端 未结 5 1743
无人共我
无人共我 2020-11-22 04:21

Every time I create views like Button and TextView in ConstraintLayout, they all get stuck at the top corner instead of where I placed

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 05:00

    A quick, easy way to fix this is to click on the component (TextView, ImageView, etc.) and click the infer constraints button. It looks like 2 yellow plus signs.

    infer constraints image

提交回复
热议问题