mTextView.setText(Html.fromHtml("26<ruby>日<rt>にち</rt></ruby>から"));
But Html.fromHtml
doesn't support ruby element well. <rt>
elements will be omitted in the textview. Is there any workaround? I have a list of such TextView
, so WebView
is inefficient.
Edit: I tried WebView
, and it worked better than I thought. Be careful with encodings.