Skip to content

Commit ab0346d

Browse files
author
yangyufei
committed
support bottomSheet
1 parent 6312ee2 commit ab0346d

17 files changed

Lines changed: 226 additions & 18 deletions

.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>NestedTouchScrollingLayout</name>
4+
<comment>Project NestedTouchScrollingLayout created by Buildship.</comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
16+
</natures>
17+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
connection.project.dir=
2+
eclipse.preferences.version=1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ mNestedTouchScrollingLayout.registerNestScrollChildCallback(new NestedTouchScrol
7272
### Next
7373
- [x] hold all touch event, and dispath touch event to child view.
7474
- [x] fix ACTION_UP dispatch child click event.
75-
- [ ] support bottomsheet.
75+
- [x] support bottomsheet.
7676
- [ ] support CoordinatorLayout (AppbarLayout).
7777
- [ ] add damping draging.
7878

app/.classpath

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
4+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
5+
<classpathentry kind="output" path="bin/default"/>
6+
</classpath>

app/.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>app</name>
4+
<comment>Project app created by Buildship.</comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
connection.project.dir=..
2+
eclipse.preferences.version=1

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies {
2828

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

31-
// api project(':library')
31+
api project(':library')
3232
// implementation 'com.github.JarvisGG:NestedTouchScrollingLayout:v1.0.2'
33-
implementation 'com.jarvis.library.NestedTouchScrollingLayout:library:1.0.2'
33+
// implementation 'com.jarvis.library.NestedTouchScrollingLayout:library:1.0.2'
3434
}

app/src/main/java/jarvis/com/nestedtouchscrollinglayout/RecyclerViewActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ public void run() {
7777
});
7878
}
7979

80+
@Override
81+
public void onFingerUp(float velocityY) {
82+
83+
}
84+
8085
@Override
8186
public void onNestChildHorizationScroll(boolean show) {
8287

app/src/main/java/jarvis/com/nestedtouchscrollinglayout/WebViewActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ public void onNestChildScrollRelease(float deltaY, int velocityY) {
4848
mContainer.recover(0);
4949
}
5050

51+
@Override
52+
public void onFingerUp(float velocityY) {
53+
54+
}
55+
5156
@Override
5257
public void onNestChildHorizationScroll(boolean show) {
5358

app/src/main/java/jarvis/com/nestedtouchscrollinglayout/fragment/BaseChildFragment.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ public void onNestChildScrollRelease(float deltaY, int velocityY) {
4545
mPager.setCurrentItem(targetPos);
4646
}
4747

48+
@Override
49+
public void onFingerUp(float velocityY) {
50+
51+
}
52+
4853
@Override
4954
public void onNestChildHorizationScroll(boolean show) {
5055

0 commit comments

Comments
 (0)