How to practically display math formula in Android

Tae-Sung Shin picture Tae-Sung Shin · Dec 2, 2011 · Viewed 18.9k times · Source

I researched on this for quite a while and I know this kind of questions already answered. But I couldn't find a right answer showing how to practically deal with math formula in Android app. Without including large amount (5~20MB) of files in the Android project, it seems that there is no way to parse & display math formula script like MATHML. I looked at JEuclid and MathJax that were mentioned a lot for Android but I found them in this category.

So at this point, the only way I can think of is to take each of those formula in a image file and display it on Android. But in practice, that manual process is really slow. I am sure this is not a right way.

So I have to ask this again. How to practically display math formula in your Android app?

Answer

Vinayak Mestri picture Vinayak Mestri · May 12, 2016

You can not set maths formula to TextView in android. You have to use WebView in which you can display maths formulae. See mathjax for more information. if you want to display for android then here is library you can implement in your project. mathjaxwebview