Skip to content

Commit

Permalink
never over scroll for default
Browse files Browse the repository at this point in the history
  • Loading branch information
woxingxiao committed Jan 18, 2020
1 parent e753c6d commit 05495a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.60'
ext.kotlin_version = '1.3.61'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 5
versionName "1.4"
versionCode 6
versionName "1.5"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public BounceScrollView(@NonNull Context context, @Nullable AttributeSet attrs,
setVerticalScrollBarEnabled(false);
setHorizontalScrollBarEnabled(false);
setFillViewport(true);
setOverScrollMode(View.OVER_SCROLL_NEVER);

TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.BounceScrollView, 0, 0);
mDamping = a.getFloat(R.styleable.BounceScrollView_damping, DEFAULT_DAMPING_COEFFICIENT);
Expand Down

0 comments on commit 05495a7

Please sign in to comment.