• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How do I write an equation in string format in Android?

gabi2i42

Lurker
Hello, I am creating an Android App and I do not know how to write an equation which will be displayed to the user, an example could be y=x/2. I am interested to put the x on the top and 2 on the bottom. I have tried to write it as a string such as y=x<div>2</div> (HTML) but Android or XML does not recognise the <div>function. I am using Java and XML.

Thank you
 
Back
Top Bottom