爲什麼我不能把「x 5」放在TextView上,但我可以放上「x 4」?爲什麼我不能把「x 5」放在TextView上,但我可以放上「x 4」?
<string name="secante_instru">Enter the following polynomial coefficients \n Ax⁵ + Bx⁴ + Cx³ + Dx² + Ex + F</string>
爲什麼我不能把「x 5」放在TextView上,但我可以放上「x 4」?爲什麼我不能把「x 5」放在TextView上,但我可以放上「x 4」?
<string name="secante_instru">Enter the following polynomial coefficients \n Ax⁵ + Bx⁴ + Cx³ + Dx² + Ex + F</string>
5 - 存在,但它是不可見的。它只佔用空間。可能是字體的錯誤。嘗試使用另一個。 How to set custom font希望它的幫助。
UPDATE
試試這個:
yourTextView.setText(Html.fromHtml("x<sup>5</sup>"));
我更新了我的答案 – jimpanzer 2013-05-03 14:22:52
你試過包裝用雙引號。
當你嘗試時會發生什麼? – eldarerathis 2013-04-08 23:08:52
這是一個非常具有描述性的標題... – Doorknob 2013-04-08 23:22:30