去除TextView中文字不居中的方法

来源:互联网 发布:笛卡尔乘积算法公式 编辑:程序博客网 时间:2024/04/29 03:52

一种是再程序中调用TextView的方法:

setIncludeFontPadding (boolean includepad)


或者在xml中加入下句:


android:includeFontPadding="false"


http://stackoverflow.com/questions/4768738/android-textview-remove-spacing-and-padding-on-top-and-bottom

0 0
原创粉丝点击