Here is the project: github.com/kexanie/MathView
I have only found a method to change the background and forefround colors.
XML:
<io.github.kexanie.library.MathView
android:id="@+id/formula"
android:layout_width="match_parent"
android:layout_height="wrap_content"
auto:text="\\(ax^2 + bx + c = 0\\) "
auto:engine="KaTeX"
>
</io.github.kexanie.library.MathView>
Java:
MathView formula;
formula = (MathView) findViewById(R.id.formula);
String tex = " \\(ax^2 + bx + c = 0\\) ";
formula.setText(tex);
Here is the answer:
First change the config:
Then:
Just change white to what you need.