How to center a textview inside a linearlayout

前端 未结 11 2133
死守一世寂寞
死守一世寂寞 2020-12-15 03:05

I have the following layout i\'d like to make the textview appear in the center and middle of the view. How can i acheive this?

I\'ve tried adjusting the various gra

11条回答
  •  -上瘾入骨i
    2020-12-15 03:40

    Sounds like you want android:layout_gravity for the TextView

    see docs: developer.android.com

提交回复
热议问题