Constraint Layout Vertical Align Center

后端 未结 7 965
醉梦人生
醉梦人生 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:11

    Showing it graphically.

    Centering on parent is done by constraining both sides to the parent. You can the constrain additional objects off of the centered object.

    Note. Each arrow represents a "app:layout_constraintXXX_toYYY=" attribute. (6 in the picture)

    0 讨论(0)
提交回复
热议问题