diff --git a/app/build.gradle b/app/build.gradle index 9799d41..2af576e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 24 - buildToolsVersion "${supportLibVersion}" + buildToolsVersion '24.0.1' defaultConfig { applicationId "com.turingtechnologies.materialscrollbardemo" diff --git a/build.gradle b/build.gradle index 1843741..4880619 100644 --- a/build.gradle +++ b/build.gradle @@ -21,5 +21,5 @@ allprojects { jcenter() } - project.ext.supportLibVersion = '24.0.0' + project.ext.supportLibVersion = '24.1.0' } \ No newline at end of file diff --git a/lib/build.gradle b/lib/build.gradle index 4bfaaaf..b5150d8 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' -def version = '10.1.0' +def version = '10.1.1' install { repositories.mavenInstaller { @@ -41,7 +41,7 @@ ext { android { compileSdkVersion 24 - buildToolsVersion "${supportLibVersion}" + buildToolsVersion '24.0.1' defaultConfig { minSdkVersion 11 diff --git a/lib/src/main/java/com/turingtechnologies/materialscrollbar/MaterialScrollBar.java b/lib/src/main/java/com/turingtechnologies/materialscrollbar/MaterialScrollBar.java index 5443704..3f6d900 100644 --- a/lib/src/main/java/com/turingtechnologies/materialscrollbar/MaterialScrollBar.java +++ b/lib/src/main/java/com/turingtechnologies/materialscrollbar/MaterialScrollBar.java @@ -569,6 +569,11 @@ public T setBarThickness(int thickness){ if(indicator != null){ indicator.setSizeCustom(thickness); } + + layoutParams = (LayoutParams) getLayoutParams(); + layoutParams.width = thickness; + setLayoutParams(layoutParams); + return (T)this; }