Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须像x - (20 * x)/100在 TextView 中一样绘制数学方程,它必须看起来像这样:
x - (20 * x)/100
我使用ReplacementSpan在 TextView 的基线上添加分数。但似乎数学运算符没有与 TextView 的基线对齐。所以结果是这样的:
ReplacementSpan
现在我想知道如何找到数学运算符的基线来对齐分数?
采用
Paint.getTextBounds with "-" text