Skip to content

Commit 31f885d

Browse files
committed
Readme update
1 parent 399ef27 commit 31f885d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dependencies {
5656
textColor = Color.GREEN.toString()
5757
backgroundColor = Color.WHITE
5858
text = "$\\F&#x2196{&#x2192}=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 ?

0 commit comments

Comments
 (0)