如何在 android studio 中写分数。我要生成的带有水平线的分数的最佳做法是什么。
最佳答案
使用html格式。但是,您必须在顶部和底部添加额外的空间以防止它被切断。
SpannableStringBuilder test = new SpannableStringBuilder();
test.append("\n");
test.append(Html.fromHtml("<sup>5</sup>/<sub>9</sub>"));
test.append("\n");
关于android - 我如何在android studio中写一个分数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32888531/