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

Categories

0 votes
117 views
in Technique[技术] by (71.8m points)

java - Android String Resource Superscript

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

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

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...