Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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


Sample App