https://github.com/enginebai/swagpoints
An Android custom circular SeekBar that supports max/min range and step settings.
https://github.com/enginebai/swagpoints
android circular-progress-bar custom-view java seekbar
Last synced: 10 months ago
JSON representation
An Android custom circular SeekBar that supports max/min range and step settings.
- Host: GitHub
- URL: https://github.com/enginebai/swagpoints
- Owner: enginebai
- License: apache-2.0
- Created: 2016-08-07T01:18:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-28T09:05:31.000Z (over 8 years ago)
- Last Synced: 2025-04-10T01:09:23.289Z (10 months ago)
- Topics: android, circular-progress-bar, custom-view, java, seekbar
- Language: Java
- Homepage: https://enginebai.com/2018/05/07/android-custom-view/
- Size: 1.23 MB
- Stars: 312
- Watchers: 6
- Forks: 48
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwagPoints
[](https://www.apache.org/licenses/LICENSE-2.0)
[  ](https://bintray.com/enginebai/DualCores/SwagPoints/_latestVersion)
**SwagPoints** - An Android custom circular SeekBar that supports max/min range and step settings.

## Gradle
```java
dependencies {
...
compile 'com.dualcores.swagpoints:swagpoints:1.0.2'
}
```
## Usage
* In XML layout:
```xml
```
**Remember** to add `layout_padding` to make sure that there is enough space to display the whole widget and indicator drawable.

If you don't add any `layout_padding`, the arc will extend the whole width/height, and the indicator drawable will be truncated (as below diagram).

* All customizable attributes:
```xml
```
## Sample
* Clone the repository and check out the `app` module.
* Download the app [Swag – Exchange Personal Snaps](https://play.google.com/store/apps/details?id=com.machipopo.swag) on Google Play. This widget is used in the send point dialog.
## Licence
Copyright 2016 Engine Bai
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.