下标和上标一个字符串在Android(Subscript and Superscript a String in Android)
如何用下标或上标打印字符串? 没有外部图书馆可以做到吗? 我希望这可以在Android中的TextView中显示。
How can you print a string with a subscript or superscript? Can you do this without an external library? I want this to display in a TextView in Android.
最满意答案
((TextView)findViewById(R.id.text)).setText(Html.fromHtml("X<sup>2</sup>"));要么
常见的任务和如何在Android中做他们
((TextView)findViewById(R.id.text)).setText(Html.fromHtml("X<sup>2</sup>"));or
Common Tasks and How to Do Them in Android
更多推荐
发布评论