From 33145547e4c18cfac6ade05f9d528bb9e85cf707 Mon Sep 17 00:00:00 2001 From: Leon Fu Date: Sun, 13 Mar 2016 21:22:43 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6629e94..455702e 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,21 @@ ### Gradle: -[ ![Download](https://api.bintray.com/packages/rtugeek/maven/ColorSeekBar/images/download.svg) ](https://bintray.com/rtugeek/maven/ColorSeekBar/_latestVersion)[![API](https://img.shields.io/badge/API-8%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=8) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ColorSeekBar-green.svg?style=true)](https://android-arsenal.com/details/1/3118) +[![Release](https://jitpack.io/v/rtugeek/colorseekbar.svg)](https://jitpack.io/#rtugeek/colorseekbar) [![API](https://img.shields.io/badge/API-8%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=8) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ColorSeekBar-green.svg?style=true)](https://android-arsenal.com/details/1/3118) +Step 1. Add the JitPack repository to your build file +Add it in your root build.gradle at the end of repositories: ``` - compile 'com.rtugeek.android:colorseekbar:1.0.0' + allprojects { + repositories { + ... + maven { url "https://jitpack.io" } + } + } +``` +Step 2. Add the dependency +``` + compile 'com.github.rtugeek:ColorSeekBar:1.0.1' ``` ## Usage @@ -40,7 +51,7 @@ XML JAVA ```java colorSeekBar.setMaxValue(100); - colorSeekBar.setColors(R.array.material_colors); // material_colors is defalut included in res.color,just use it. + colorSeekBar.setColors(R.array.material_colors); // material_colors is defalut included in res/color,just use it. colorSeekBar.setColorBarValue(10); //0 - maxValue colorSeekBar.setAlphaBarValue(10); //0-255 colorSeekBar.setShowAlphaBar(true); From 15ef4e8d7b712fce9b28c5844e64a496b12d561d Mon Sep 17 00:00:00 2001 From: Leon Fu Date: Sun, 13 Mar 2016 21:24:54 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 455702e..5add1d0 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,7 @@ ### Gradle: [![Release](https://jitpack.io/v/rtugeek/colorseekbar.svg)](https://jitpack.io/#rtugeek/colorseekbar) [![API](https://img.shields.io/badge/API-8%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=8) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ColorSeekBar-green.svg?style=true)](https://android-arsenal.com/details/1/3118) -Step 1. Add the JitPack repository to your build file -Add it in your root build.gradle at the end of repositories: +Step 1. Add the JitPack repository in your root build.gradle at the end of repositories: ``` allprojects { repositories {