https://github.com/bhullnatik/gonioview
Android view to represent an angle measurement (Goniometry)
https://github.com/bhullnatik/gonioview
android gonio view
Last synced: 9 months ago
JSON representation
Android view to represent an angle measurement (Goniometry)
- Host: GitHub
- URL: https://github.com/bhullnatik/gonioview
- Owner: Bhullnatik
- License: apache-2.0
- Created: 2017-01-31T06:04:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-03T20:59:13.000Z (over 9 years ago)
- Last Synced: 2025-04-06T15:47:14.609Z (over 1 year ago)
- Topics: android, gonio, view
- Language: Java
- Homepage:
- Size: 740 KB
- Stars: 28
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://raw.githubusercontent.com/bhullnatik/gonioview/master/LICENSE)
[](https://github.com/Bhullnatik/GonioView/releases/latest)
# GonioView
Simple Android view to represent an angle (Goniometry).

## Download
Maven:
```xml
com.bhullnatik
gonioview
latest-version
```
Gradle:
```groovy
compile 'com.bhullnatik:gonioview:latest-version'
```
The library currently works on Android **API 1+**. This may **change at any major version** as it's not maintainable.
## Usage
_Check the sample project for examples._
The most useful method is:
```java
int getCurrentAngle();
```
Returns the current angle (in degrees, between 0 and 180) displayed by the view.
## Roadmap
- [ ] Set angle & positions programmatically
- [ ] More options to calculate angles
- [ ] Customization (toggle text display, color, drawables for handles, ...)
- [ ] XML attributes
- [ ] ...
## Why
I needed the view and couldn't find anything like it, so I decided to open-source it. Turns out it was way easier than I thought but that's another story.