|
4 | 4 | import android.support.annotation.Px; |
5 | 5 | import android.support.v4.view.NestedScrollingParent; |
6 | 6 | import android.support.v4.view.ViewCompat; |
7 | | -import android.support.v7.widget.RecyclerView; |
8 | 7 | import android.util.AttributeSet; |
9 | 8 | import android.view.MotionEvent; |
10 | 9 | import android.view.View; |
@@ -118,14 +117,6 @@ public boolean dispatchTouchEvent(MotionEvent ev) { |
118 | 117 | return super.dispatchTouchEvent(ev) ; |
119 | 118 | } |
120 | 119 |
|
121 | | - @Override |
122 | | - public boolean onTouchEvent(MotionEvent event) { |
123 | | - if(event.getAction()==MotionEvent.ACTION_UP){ |
124 | | - L.d("action up -------------------->"); |
125 | | - } |
126 | | - return super.onTouchEvent(event); |
127 | | - } |
128 | | - |
129 | 120 | @Override |
130 | 121 | public void onNestedScrollAccepted(View child, View target, int axes) { |
131 | 122 | isRelease = false; |
@@ -325,13 +316,6 @@ public void setLoadingLayout(ILoadingLayout loadingLayout) { |
325 | 316 | * complete the refresh state! |
326 | 317 | */ |
327 | 318 | public void completeRefresh() { |
328 | | - if (isPullFooter && refreshView instanceof RecyclerView) { |
329 | | - RecyclerView recyclerView = (RecyclerView) refreshView; |
330 | | - if (recyclerView.getAdapter() != null) { |
331 | | - recyclerView.smoothScrollToPosition(recyclerView.getAdapter().getItemCount()); |
332 | | - } |
333 | | - } |
334 | | - |
335 | 319 | isNeedInitLoadingLayout = true; |
336 | 320 | smoothScroll(0 - getScrollY()); |
337 | 321 |
|
|
0 commit comments