Open yishuinanfeng opened 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.
See pull request #69
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.