Can´t center textview´s text vertically

前端 未结 7 1760

[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条回答
  • To achieve the result you want, it will be enough to remove

    android:gravity="center_vertical"
    android:layout_alignBottom="@+id/icon"
    android:layout_alignTop="@+id/icon"
    

    and add

    android:layout_centerVertical="true"

    instead.

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