Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

Android - Problem when using sharedPreferences for SpannableString superscripts

I save the whole text of a TextView with sharedpreferences, but when I load it, the superscripts' font size gets the same as the other text's font size, I mean they get larger. Is there a way to load the SpannableString as it is with superscript size without any change?

The code that I used is fromHtml

Html.fromHtml( sharedpreferences.getString(textViewTextKey, ""), Html.FROM_HTML_MODE_COMPACT )

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

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...