A
A
Artemy2015-04-20 00:08:02
Android
Artemy, 2015-04-20 00:08:02

How to display a fraction in a TextView?

Hello! I'm scratching my head over the subject! Found one solution chiuki.github.io/advanced-android-textview/#/23 , but it uses the textPaint.setFontFeatureSettings method from API 21 . Can you please tell me how to get around this place? Or maybe someone faced a similar problem, and knows some alternative ways!
I would be grateful for any help!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Pukhov, 2015-04-20
@Neuroware

you can, in theory, make a control in which there are 2 text fields and a separator and insert not text but this control

O
one pavel, 2015-04-20
@onepavel

1\n—\n2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question