We’re happy to introduce you a new free regulator VolumeControlView based on our lightweight open-source visual component that doesn't require extra lines of code and can be easily integrated into your project. Visual regulator can be connected to a player or other smart house’s device making the process of controlling the level of a particular characteristic much easier.
Demo
Link to iOS repo
Check out our iOS VolumeControlView also!
Example
To run the example project, clone the repo, and run sample.
How to use
Just add VolumeControlView to your layout file:
<com.agilie.volumecontrol.view.VolumeControlView
android:id="@+id/controllerView"
android:layout_width="wrap_content"
android:layout_height="270dp">
The visual display of this regulator can be easily customized. One has a possibility to choose colors, the gradient style and background according to the wishes:
var colors : intArrayOf
var backgroundLayoutColor : Color
var minShiningRadius : Float
var maxShiningRadius : Float
var shiningFrequency : Float
<declare-styleable name="VolumeControlView">
<attr name="innerCircleColor" format="color" />
<attr name="movableCircleColor" format="color" />
<attr name="splineCircleColor" format="color" />
<attr name="controllerSpace" format="float" />
<attr name="sectorRadius" format="integer" />
<attr name="movableCircleRadius" format="float" />
<attr name="minShiningRadius" format="float" />
<attr name="maxShiningRadius" format="float" />
<attr name="shiningFrequency" format="float" />
</declare-styleable>
Usage
Gradle
Add dependency in your build.gradle
file:
compile 'com.agilie:volume-control-view:1.0'
Maven
Add dependency in your .pom
file:
<dependency>
<groupId>com.agilie</groupId>
<artifactId>volume-control-view</artifactId>
<version>1.0</version>
<type>pom</type>
</dependency>
Requirements
VolumeControlView works on Android API 19+
Troubleshooting
Problems? Check the Issues block to find the solution or create an new issue that we will fix asap.
Author
This library is open-sourced by Agilie Team info@agilie.com
Contributors
Contact us
If you have any questions, suggestions or just need a help with web or mobile development, please email us at
android@agilie.com
You can ask us anything from basic to complex questions.
We will continue publishing new open-source projects. Stay with us, more updates will follow!
License
The MIT License (MIT) Copyright © 2017 Agilie Team