kongzue 4 lat temu
rodzic
commit
a7266ebb16

+ 3 - 3
DialogX/build.gradle

@@ -6,7 +6,7 @@ def siteUrl = 'https://github.com/kongzue/DialogX' //项目在github主页地址
 def gitUrl = 'https://github.com/kongzue/DialogX.git'   //Git仓库的地址
 
 group = "com.kongzue.dialogx"
-version = "0.0.4"
+version = "0.0.5"
 
 android {
     compileSdkVersion 30
@@ -14,8 +14,8 @@ android {
     defaultConfig {
         minSdkVersion 21
         targetSdkVersion 30
-        versionCode 4
-        versionName "0.0.4"
+        versionCode 5
+        versionName "0.0.5"
 
         consumerProguardFiles "consumer-rules.pro"
 

+ 2 - 5
DialogX/src/main/java/com/kongzue/dialogx/util/views/MaxRelativeLayout.java

@@ -152,13 +152,10 @@ public class MaxRelativeLayout extends RelativeLayout {
                     float moveX = event.getRawX();
                     
                     if (Math.abs(moveY - touchY) > dip2px(20) || Math.abs(moveX - touchX) > dip2px(20)) {
-                        final ViewParent parent = getParent();
-                        if (parent != null) {
-                            parent.requestDisallowInterceptTouchEvent(true);
-                        }
                         return true;
+                    } else {
+                        return false;
                     }
-                    break;
             }
             return isMove;
         }

+ 2 - 2
README.md

@@ -96,7 +96,7 @@ DialogX 采用了主体分离结构,主框架仅包含 Material 设计风格
 想要在您的项目引入 DialogX,您需要在 app 的 build.gradle 文件中找到 `dependencies{}` 代码块,并在其中加入以下语句:
 
 ```
-implementation 'com.kongzue.dialogx:DialogX:0.0.4'
+implementation 'com.kongzue.dialogx:DialogX:0.0.5'
 ```
 
 若有需要,也可以手动配置 Maven:
@@ -105,7 +105,7 @@ implementation 'com.kongzue.dialogx:DialogX:0.0.4'
 <dependency>
   <groupId>com.kongzue.dialogx</groupId>
   <artifactId>DialogX</artifactId>
-  <version>0.0.4</version>
+  <version>0.0.5</version>
   <type>pom</type>
 </dependency>
 ```