How to remove TextView top margin?

后端 未结 4 1944
日久生厌
日久生厌 2021-01-31 04:19

I do have a problem with TextView. I don\'t want to have any margin/padding above it.



        
4条回答
  •  有刺的猬
    2021-01-31 04:58

    What you need to do is to put the other view relative to the top of the font, and give it a negative android:layout_marginBottom in dip, such that it matches the top of the font. If the font has a margin, I don't think there is a better way of doing it.

提交回复
热议问题