jianzhongli / MathView

A library for displaying math formula in Android apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some issue about setting text color for MathView

yishuinanfeng opened this issue · comments

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.

See pull request #69