Android - display fractions using unicode

I am trying to do the part:

I use this text view, but it doesn't look very good:

"5"+'\u2044'+"9"; 

It does not turn the text into a pleasant fraction, and not as part of the coverings of part of the numbers and compresses them together.

Any solutions or alternatives?

0
source share
1 answer

Try:

 tv.setText(Html.fromHtml("<sup>5</sup>/<sub>9</sub>")); 

I don’t know if it will look good, but it's worth it. Otherwise, in addition to single glyph fractions, such as 1/2, I suspect that you either have to get around or do it yourself.

+2
source

All Articles