MathJax-Android
MathJax-Android copied to clipboard
Text alignment within MathJaxView
By default, all text and math is centered. Setting android:gravity="start", "left", "end", "right" do not seem to have any effect. However, if I manually change
<div style="text-align: center;"> <span id='math'></span> </div>
to
<div style=""> <span id='math'></span> </div>
in mathjax_android.html, text will be aligned as it typically would in LaTeX.
Is there a way to do this on the fly?
This would be possible. Since WebViews are not playing well with wrap_content it would require to modifying the style of the div using the Javascript bridge. I have no plans for implementing something like this at the moment. Pull requests are welcome.
the view isn't matching the width parent,even when set, it's always moving if touched slightly is there any suggestion on how to deactivate that on the fly?