Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derysudrajat/math-view
A Library for displaying math equation in Android
https://github.com/derysudrajat/math-view
android equation formula hacktoberfest latex math mathematics
Last synced: 3 months ago
JSON representation
A Library for displaying math equation in Android
- Host: GitHub
- URL: https://github.com/derysudrajat/math-view
- Owner: derysudrajat
- License: mit
- Created: 2021-07-15T16:23:07.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-08T13:57:12.000Z (about 2 years ago)
- Last Synced: 2024-07-08T00:43:35.992Z (4 months ago)
- Topics: android, equation, formula, hacktoberfest, latex, math, mathematics
- Language: Kotlin
- Homepage:
- Size: 228 KB
- Stars: 27
- Watchers: 3
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-Android-Open-Source-Projects - MathView
README
![math-view](https://user-images.githubusercontent.com/32610660/125827642-bbb31432-eea1-443b-87e8-47bbb2254172.png)
# math-view
A Library for displaying math equation in Android[![](https://jitpack.io/v/derysudrajat/math-view.svg)](https://jitpack.io/#derysudrajat/math-view)
## Setup
Add this to `build.gradle` (project)
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```Add this dependency to `build.grdle` (module) or if you using gradle 7+ put it to `setting.gradle`
```gradle
dependencies {
implementation 'com.github.derysudrajat:math-view:1.0.1'
}
```## How to use
Create MathView in your XML layout
```xml
```
You can put [LaTeX](https://www.overleaf.com/learn/latex/Mathematical_expressions) expression to set into the formula
```kotlin
val formula = "2a+4b\\sqrt{\\frac{4x-2^{6}}{ax^2+57}}+\\frac{3}{2}"
mathView.formula = formula
```## Screenshot