jianzhongli / MathView

A library for displaying math formula in Android apps.
Apache License 2.0
1.01k stars 189 forks source link

Some issue about setting text color for MathView #66

Open yishuinanfeng opened 5 years ago

yishuinanfeng commented 5 years ago

hello~I want to let the color of my MathView's text become white,according to stackoverflow(The link is : https://stackoverflow.com/questions/41485618/how-can-i-change-the-color-of-text-of-a-mathview-which-is-basically-a-webview) ,I try:

MathView formula = findViewById(R.id.scan_result); formula.config( "MathJax.Hub.Config({\n"+ " { TeX: { extensions: [\"color.js\"] } }\n"+ "});" ); Then:

formula.setText("\(\color{white}{ax^2 + 7}\)");

it can show text as white.

but if i use some lateX which need symbol "$" like this: formula.setText("\(\color{white}{$$ax^2 + 7$$}\)");

it dose not work. Thanks if someone can help me.

tranleduy2000 commented 5 years ago

See pull request #69