Skip to content

Commit

Permalink
拖拽兼容support
Browse files Browse the repository at this point in the history
  • Loading branch information
goweii committed Dec 1, 2019
1 parent f56178b commit 40fa3b8
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 1,671 deletions.
1 change: 1 addition & 0 deletions anylayer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ android {
}

dependencies {
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.github.goweii:Blurred:1.3.0'
}
7 changes: 4 additions & 3 deletions anylayer/src/main/java/per/goweii/anylayer/DragCompat.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package per.goweii.anylayer;

import android.graphics.Rect;
import android.support.v4.view.ScrollingView;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
Expand Down Expand Up @@ -138,10 +140,9 @@ public static boolean isScrollableView(View view) {
return view instanceof ScrollView
|| view instanceof HorizontalScrollView
|| view instanceof AbsListView
// || view instanceof ViewPager
|| view instanceof ViewPager
|| view instanceof WebView
// || view instanceof ScrollingView
;
|| view instanceof ScrollingView;
}

public static boolean contains(View view, float x, float y) {
Expand Down
Loading

0 comments on commit 40fa3b8

Please sign in to comment.