Simple Android view to represent an angle (Goniometry).
<dependency> <groupId>com.bhullnatik</groupId> <artifactId>gonioview</artifactId> <version>latest-version</version> </dependency>
The library currently works on Android API 1+. This may change at any major version as it's not maintainable.
Check the sample project for examples.
The most useful method is:
Returns the current angle (in degrees, between 0 and 180) displayed by the view.
- Set angle & positions programmatically
- More options to calculate angles
- Customization (toggle text display, color, drawables for handles, ...)
- XML attributes
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.