computeMaxLineCount方法需修改为 float availableHeight = getMeasuredHeight() + getLineSpacingExtra() - getPaddingTop() - getPaddingBottom();
computeMaxLineCount方法需修改为
float availableHeight = getMeasuredHeight() + getLineSpacingExtra() - getPaddingTop() - getPaddingBottom();