https://github.com/mmj-dev-git/mjrangebar
MjRangeBar/RangeBarGraph
https://github.com/mmj-dev-git/mjrangebar
Last synced: 5 months ago
JSON representation
MjRangeBar/RangeBarGraph
- Host: GitHub
- URL: https://github.com/mmj-dev-git/mjrangebar
- Owner: mmj-dev-git
- Created: 2020-06-03T14:49:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T15:31:18.000Z (over 5 years ago)
- Last Synced: 2025-07-01T11:55:00.232Z (5 months ago)
- Language: Java
- Size: 203 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MjRangeBar
The MjRangeBar is android RangeBar Graph library that adds some basic material styling, as well as start and end values of range bar,start and end values of Range and item value as floats and some other things using views and Canvas.
**Developers can customize the following attributes (programmatically):**
- Background Color
- RangeBar Selected Color
- RangeBar Stroke Color
- Magic
- Min & Max Text Color
- Value Text Color
- Circle Color
- out Of Bound Text Color
**Supported on API Level 15 and above.**

# How to Use
In your project build.gradle. Add the following lines
```Gradle
Allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
In your app build.gradle. Add the following lines
```Gradle
implementation 'com.github.m-jayy:MjRangeBar:0.1.0'
```
# Examples
#### Layout XML
```XML
```
#### Java
```Java
RangeBarGraph = (RangeBarGraph) findViewById(R.id.RangeBarGraph);
RangeBarGraph.setValues(0.0, 400.0, 130.0, 350.0, 80.0);
// RangeBarGraph.setRangeBarBackgroundColor("ffffff");
// RangeBarGraph.setRangeBarStrokeColor("#eaeaea");
// RangeBarGraph.setRangeBarSelectedColor("#eaeaea");
// RangeBarGraph.setRangeBarValueTextColor("#333333");
// RangeBarGraph.setRangeBarMinMaxTextColor("#333333");
// RangeBarGraph.setvalueCircleColor("#333333");
// RangeBarGraph.setoutOfBoundColor("#FF0000");
```

# Plan for Future
- Better documentation.
- Kotlin conversion
- Add more functionality
# License
**Free Software, Hell Yeah!** :metal:
# Contribution
We'd love for you to participate in the development of our project. So we need all the help we can get. You are always welcome to contribute and help us maintain the library.