GonioView

Additional

Language
Java
Version
v0.0.4 (Feb 4, 2017)
Created
Jan 31, 2017
Updated
Feb 3, 2017 (Retired)
Owner
Jimmy Mayoukou (Bhullnatik)
Contributor
Jimmy Mayoukou (Bhullnatik)
1
Activity
Badge
Generate
Download
Source code

GonioView

Simple Android view to represent an angle (Goniometry).

Download

Maven:

<dependency>
    <groupId>com.bhullnatik</groupId>
    <artifactId>gonioview</artifactId>
    <version>latest-version</version>
</dependency>

Gradle:

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:

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.