1.在程序中调用TextView的方法:
setIncludeFontPadding (boolean includepad)
2.或者在xml中加入下句:
android:includeFontPadding="false"
见:
http://stackoverflow.com/questions/4768738/android-textview-remove-spacing-and-padding-on-top-and-bottom
本文介绍如何通过设置TextView的includeFontPadding属性为false来移除TextView顶部和底部的空隙,提供程序代码设置方法及XML配置方式。
1.在程序中调用TextView的方法:
setIncludeFontPadding (boolean includepad)
2.或者在xml中加入下句:
android:includeFontPadding="false"
见:
http://stackoverflow.com/questions/4768738/android-textview-remove-spacing-and-padding-on-top-and-bottom
1624
1549

被折叠的 条评论
为什么被折叠?