File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ dependencies {
5656 textColor = Color.GREEN.toString()
5757 backgroundColor = Color.WHITE
5858 text = "$\\F↖{→}=ma_g$"
59- }.updaet ()
59+ }.update ()
6060
6161```
6262## Or set text directly in xml
@@ -79,12 +79,13 @@ There are currently five custom functions available for the user. I plan to refa
7979 // Apply properties, then call update()
8080 var mathView : MathView = findViewById<MathView >(R .id.mvEditTextExample)
8181 mathView.apply {
82- text = " $\\ F=10$"
83- textColor = " red"
82+ text = " $\\ F=10$" // sets text
83+ textColor = " red" // sets text color, default value is "black"
84+ backgroundColor = " blue" // sets background color, default value is "white"
8485 }.update()
8586
8687 // Only after setting textZoom property there is no need to call update()
87- mathView.textZoom = 120
88+ mathView.textZoom = 120 // set text size based on pixel density, default value is 100 (%)
8889```
8990
9091# Why jqMath and why I created this library ?
You can’t perform that action at this time.
0 commit comments