TextView horizontal center in RelativeLayout

前端 未结 6 1311
一向
一向 2021-02-01 12:04

In my app screen, i want to show Heading as horizontally center. I tried with below layout xml codes




        
6条回答
  •  执笔经年
    2021-02-01 12:52

    use layout_centerInParent="true"(layout_centerInHorizontal,layout_centerInVertical)

    gravity means the algin of text on textview, not the view itself

提交回复
热议问题