Constraint Layout Vertical Align Center

后端 未结 7 984
醉梦人生
醉梦人生 2020-12-13 05:20

How to vertically align and center objects in constraint layout? It is possible to align vertically or horizontally but I have not found a way to center at the same time bes

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 06:09

    May be i did not fully understand the problem, but, centering all view inside a ConstraintLayout seems very simple. This is what I used:

    
    

    Last two lines did the trick!

提交回复
热议问题