3
Chase给出的解决此问题的解决方案在2.2 - 3.2中正常工作,但是当我在4.0上测试时失败。自动缩放TextView文本以适合4.0内的界限
以下是原帖:
Auto Scale TextView Text to Fit within Bounds
在4.0我得到这使我的东西,他/她在他/她的代码写了一个奇怪的行间距问题:
// Some devices try to auto adjust line spacing, so force default line spacing
// and invalidate the layout as a side effect
textPaint.setTextSize(targetTextSize);
setLineSpacing(mSpacingAdd, mSpacingMult);
我想现在失败了,我不知道为什么(任何人?)。也不知道为什么他/她首先写了它,因为这不依赖于操作系统,而不是依赖于设备的问题?
什么行失败? – AWinter
你有没有试过我的解决方案http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds/17782522#17782522? –
还没有。在某个时候,我会重新访问这个问题。感谢您的回答。 – Redrori