diff --git a/indicatorseekbar/build.gradle b/indicatorseekbar/build.gradle index ed7a4d7..564d6ef 100644 --- a/indicatorseekbar/build.gradle +++ b/indicatorseekbar/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'com.android.library' -def VERSION_NAME = "2.0.8" +def VERSION_NAME = "2.0.9" ext { bintrayRepo = 'maven' diff --git a/indicatorseekbar/src/main/java/com/warkiz/widget/IndicatorSeekBar.java b/indicatorseekbar/src/main/java/com/warkiz/widget/IndicatorSeekBar.java index 6e454d9..2a1c29b 100644 --- a/indicatorseekbar/src/main/java/com/warkiz/widget/IndicatorSeekBar.java +++ b/indicatorseekbar/src/main/java/com/warkiz/widget/IndicatorSeekBar.java @@ -1713,7 +1713,7 @@ public void hideThumb(boolean hide) { * call this will do not draw the text which below thumb. true if hide. */ public void hideThumbText(boolean hide) { - mShowThumbText = hide; + mShowThumbText = !hide; invalidate(); } @@ -1947,9 +1947,19 @@ public void setOnSeekChangeListener(@NonNull OnSeekChangeListener listener) { * * @param onlyShow true if only show the tick texts on both of ends seek bar */ - public void showBothTickTextsOnly(boolean onlyShow) { + public void showBothEndsTickTextsOnly(boolean onlyShow) { this.mShowBothTickTextsOnly = onlyShow; } + + /** + * prevent user from seeking + * + * @param seekAble true if user can seek + */ + public void setUserSeekAble(boolean seekAble) { + this.mUserSeekable = seekAble; + } + /*------------------API END-------------------*/