Can´t center textview´s text vertically

前端 未结 7 1583
闹比i
闹比i 2021-02-09 16:20

[Solved] I had to add android:fillViewport=\"true\" to the ScrollView, that fixed the problem with the text not centering vertically.

I know this has been

7条回答
  •  一向
    一向 (楼主)
    2021-02-09 17:05

    When your are using Relative Layout, you can add to your TextView:

    `android:layout_centerVertical="true"`
    

提交回复
热议问题