Skip to content

Commit

Permalink
support bottomSheet
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyufei committed Nov 28, 2018
1 parent 6312ee2 commit ab0346d
Show file tree
Hide file tree
Showing 17 changed files with 226 additions and 18 deletions.
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>NestedTouchScrollingLayout</name>
<comment>Project NestedTouchScrollingLayout created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions .settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
connection.project.dir=
eclipse.preferences.version=1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ mNestedTouchScrollingLayout.registerNestScrollChildCallback(new NestedTouchScrol
### Next
- [x] hold all touch event, and dispath touch event to child view.
- [x] fix ACTION_UP dispatch child click event.
- [ ] support bottomsheet.
- [x] support bottomsheet.
- [ ] support CoordinatorLayout (AppbarLayout).
- [ ] add damping draging.

Expand Down
6 changes: 6 additions & 0 deletions app/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
23 changes: 23 additions & 0 deletions app/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>app</name>
<comment>Project app created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions app/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
connection.project.dir=..
eclipse.preferences.version=1
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {

implementation 'com.android.support:recyclerview-v7:28.0.0'

// api project(':library')
api project(':library')
// implementation 'com.github.JarvisGG:NestedTouchScrollingLayout:v1.0.2'
implementation 'com.jarvis.library.NestedTouchScrollingLayout:library:1.0.2'
// implementation 'com.jarvis.library.NestedTouchScrollingLayout:library:1.0.2'
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ public void run() {
});
}

@Override
public void onFingerUp(float velocityY) {

}

@Override
public void onNestChildHorizationScroll(boolean show) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ public void onNestChildScrollRelease(float deltaY, int velocityY) {
mContainer.recover(0);
}

@Override
public void onFingerUp(float velocityY) {

}

@Override
public void onNestChildHorizationScroll(boolean show) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public void onNestChildScrollRelease(float deltaY, int velocityY) {
mPager.setCurrentItem(targetPos);
}

@Override
public void onFingerUp(float velocityY) {

}

@Override
public void onNestChildHorizationScroll(boolean show) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public void onNestChildScrollRelease(float deltaY, int velocityY) {
mNestedTouchScrollingLayout.recover(0, null, 300);
}

@Override
public void onFingerUp(float velocityY) {

}

@Override
public void onNestChildHorizationScroll(boolean show) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public void onNestChildScrollRelease(float deltaY, int velocityY) {
mNestedTouchScrollingLayout.recover(0);
}

@Override
public void onFingerUp(float velocityY) {

}

@Override
public void onNestChildHorizationScroll(boolean show) {

Expand Down
6 changes: 6 additions & 0 deletions library/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
23 changes: 23 additions & 0 deletions library/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>library</name>
<comment>Project library created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions library/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
connection.project.dir=..
eclipse.preferences.version=1
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def gitUrl = 'https://github.com/JarvisGG/NestedTouchScrollingLayout.git'
def libName = "NestedTouchScrollingLayout"

group = "com.jarvis.library.NestedTouchScrollingLayout"
version = "1.0.2"
version = "1.1.0"


task sourcesJar(type: Jar) {
Expand Down
Loading

0 comments on commit ab0346d

Please sign in to comment.