Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have a string resource file, which I want to pull strings from and I want one of the strings to have some superscript in it.

From http://developer.android.com/guide/topics/resources/string-resource.html it looks like the supported tags include <b>, <i>, and <u>. I'm curious if it should work for other related tags, such as <sup>... if so then my problem is solved.

Testing the above should be easy enough, I'm just looking for a deeper understanding, to see if everything is processed similar to Subscript and Superscript a String in Android or if there is extra processing that happens when pulling the strings from the resource string file.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
115 views
Welcome To Ask or Share your Answers For Others

1 Answer

You can use Xu00B2 to create X^2 in xml directly


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...