How to write equations in an Android textview? <p>I want to display some equations in my android app and was wondering how to display a simple equation. Any ideas? </p> <p>EDIT: Is it possible to do to this in the xml file or does it has to defined dynamically in the java code?</p>