com.agog.mathdisplay / MTMathView / <init>

<init>

MTMathView(context: Context, attrs: AttributeSet? = null, defStyle: Int = 0)

View subclass for rendering LaTeX Math.

MTMathView accepts either a string in LaTeX or an MTMathList to display. Use MTMathList directly only if you are building it programmatically (e.g. using an editor), otherwise using LaTeX is the preferable method.

The math display is centered vertically in the label. The default horizontal alignment is is left. This can be changed by setting textAlignment. The math is default displayed in Display* mode. This can be changed using labelMode.

When created it uses MTFontManager.defaultFont as its font. This can be changed using the font parameter.