From 2f0379ae27c36a96707241bc713fbdb80dfe2dbf Mon Sep 17 00:00:00 2001 From: woxingxiao <185578499@qq.com> Date: Sat, 11 Mar 2017 11:40:32 +0800 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- README_zh.md | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e1d5456..f3f152f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![](https://jitpack.io/v/woxingxiao/BubbleSeekBar.svg)](https://jitpack.io/#woxingxiao/BubbleSeekBar) +[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)]() [**中文说明**](https://github.com/woxingxiao/BubbleSeekBar/blob/master/README_zh.md) @@ -20,11 +21,12 @@ root project:`build.gradle` app:`build.gradle` ```groovy dependencies { - compile 'com.github.woxingxiao:BubbleSeekBar:v1.9' + compile 'com.github.woxingxiao:BubbleSeekBar:$LATEST_VERSION' } ``` ##Usage -Check out the demo for more details: [**`MainActivity.java`**](https://github.com/woxingxiao/BubbleSeekBar/blob/master/app/src/main/java/com/xw/samlpe/bubbleseekbar/MainActivity.java) [**`content_main.xml`**](https://github.com/woxingxiao/BubbleSeekBar/blob/master/app/src/main/res/layout/content_main.xml) +Check out the demo for more details: [**`MainActivity.java`**](https://github.com/woxingxiao/BubbleSeekBar/blob/master/app/src/main/java/com/xw/samlpe/bubbleseekbar/MainActivity.java) +[**`content_main.xml`**](https://github.com/woxingxiao/BubbleSeekBar/blob/master/app/src/main/res/layout/content_main.xml) [**sample.apk**](https://github.com/woxingxiao/BubbleSeekBar/raw/master/apk/sample.apk) ##Attentions - You must correct the offsets by setting `ScrollListener` when `BubbleSeekBar`'s parent view is scrollable, otherwise the position of bubble appears maybe be wrong. For example: diff --git a/README_zh.md b/README_zh.md index e507199..a698622 100644 --- a/README_zh.md +++ b/README_zh.md @@ -1,4 +1,5 @@ -[![](https://jitpack.io/v/woxingxiao/BubbleSeekBar.svg)](https://jitpack.io/#woxingxiao/BubbleSeekBar) +[![](https://jitpack.io/v/woxingxiao/BubbleSeekBar.svg)](https://jitpack.io/#woxingxiao/BubbleSeekBar) +[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)]() **自定义`SeekBar`,进度变化由可视化气泡样式呈现,定制化程度较高,适合大部分需求。欢迎`star` or `pull request`** **** @@ -18,11 +19,12 @@ root project:`build.gradle` app:`build.gradle` ```groovy dependencies { - compile 'com.github.woxingxiao:BubbleSeekBar:v1.9' + compile 'com.github.woxingxiao:BubbleSeekBar:$LATEST_VERSION' } ``` ##Usage -查看demo获知更多使用细节: [**`MainActivity.java`**](https://github.com/woxingxiao/BubbleSeekBar/blob/master/app/src/main/java/com/xw/samlpe/bubbleseekbar/MainActivity.java) [**`content_main.xml`**](https://github.com/woxingxiao/BubbleSeekBar/blob/master/app/src/main/res/layout/content_main.xml) +查看demo获知更多使用细节: [**`MainActivity.java`**](https://github.com/woxingxiao/BubbleSeekBar/blob/master/app/src/main/java/com/xw/samlpe/bubbleseekbar/MainActivity.java) +[**`content_main.xml`**](https://github.com/woxingxiao/BubbleSeekBar/blob/master/app/src/main/res/layout/content_main.xml) [**sample.apk**](https://github.com/woxingxiao/BubbleSeekBar/raw/master/apk/sample.apk) ##Attentions - 如果`BubbleSeekBar`的外部容器是可滑动的控件,需要设置滑动监听来修正气泡的偏移,否则滑动后气泡出现位置可能错乱。方法如下: