ConstraintLayout: how to center a view under another and also stay within parent bounds?

前端 未结 4 1162
失恋的感觉
失恋的感觉 2021-01-19 03:12

I want to center a view under another like this \"sign out\" button under the email:

I did this by using a ConstraintLayout as the parent and c

4条回答
  •  执笔经年
    2021-01-19 04:15

    Suppose there are 2 views.

    • Select first view
    • Press shift
    • Select the second view.
    • Right click
    • Select Align >> Horizontal Centers.

    Done.

提交回复
热议问题