Forráskód Böngészése

0.0.45.beta18
- 完善主线程获取方式;
- 修复自定义遮罩层颜色时背景可能闪烁的问题;

kongzue 3 éve
szülő
commit
93be3995f0

+ 17 - 0
.idea/deploymentTargetDropDown.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="deploymentTargetDropDown">
+    <runningDeviceTargetSelectedWithDropDown>
+      <Target>
+        <type value="RUNNING_DEVICE_TARGET" />
+        <deviceKey>
+          <Key>
+            <type value="SERIAL_NUMBER" />
+            <value value="adb-0A201FDD4001T7-5WskUS._adb-tls-connect._tcp" />
+          </Key>
+        </deviceKey>
+      </Target>
+    </runningDeviceTargetSelectedWithDropDown>
+    <timeTargetWasSelectedWithDropDown value="2022-06-14T11:00:41.224396Z" />
+  </component>
+</project>

+ 6 - 2
DialogX/src/main/java/com/kongzue/dialogx/dialogs/BottomDialog.java

@@ -3,6 +3,7 @@ package com.kongzue.dialogx.dialogs;
 import android.animation.ObjectAnimator;
 import android.animation.ValueAnimator;
 import android.app.Activity;
+import android.graphics.Color;
 import android.os.Handler;
 import android.os.Looper;
 import android.view.View;
@@ -500,7 +501,10 @@ public class BottomDialog extends BaseDialog {
                 }
             });
             
-            if (maskColor != -1) boxRoot.setBackgroundColor(maskColor);
+            if (maskColor != -1) {
+                boxRoot.setBackgroundColor(maskColor);
+                boxRoot.setBkgAlpha(0f);
+            }
             
             if (onBindView != null && onBindView.getCustomView() != null) {
                 onBindView.bindParent(boxCustom, me);
@@ -605,7 +609,7 @@ public class BottomDialog extends BaseDialog {
                 if (exitAnimDuration >= 0) {
                     exitAnimDurationTemp = exitAnimDuration;
                 }
-                ObjectAnimator exitAnim = ObjectAnimator.ofFloat(boxBkg, "y", boxBkg.getY(),boxRoot.getUnsafePlace().top );
+                ObjectAnimator exitAnim = ObjectAnimator.ofFloat(boxBkg, "y", boxBkg.getY(), boxRoot.getUnsafePlace().top);
                 exitAnim.setDuration(exitAnimDurationTemp);
                 exitAnim.start();
             }

+ 1 - 0
DialogX/src/main/java/com/kongzue/dialogx/dialogs/MessageDialog.java

@@ -482,6 +482,7 @@ public class MessageDialog extends BaseDialog {
             }
             boxRoot.setClickable(true);
             if (maskColor != -1) boxRoot.setBackgroundColor(maskColor);
+            boxRoot.setBkgAlpha(0f);
             
             showText(txtDialogTitle, title);
             showText(txtDialogTip, message);

+ 1 - 0
DialogX/src/main/java/com/kongzue/dialogx/dialogs/WaitDialog.java

@@ -450,6 +450,7 @@ public class WaitDialog extends BaseDialog {
             useTextInfo(txtInfo, messageTextInfo);
             
             if (maskColor != -1) boxRoot.setBackgroundColor(maskColor);
+            boxRoot.setBkgAlpha(0f);
             
             if (onBindView != null && onBindView.getCustomView() != null) {
                 onBindView.bindParent(boxCustomView, WaitDialog.this);

+ 1 - 1
gradle.properties

@@ -19,5 +19,5 @@ android.useAndroidX=true
 # Automatically convert third-party libraries to use AndroidX
 android.enableJetifier=true
 
-BUILD_VERSION=0.0.45.beta17
+BUILD_VERSION=0.0.45.beta18
 BUILD_VERSION_INT=44