1
0
kongzue 4 жил өмнө
parent
commit
3fbce40451

+ 3 - 1
DialogX/src/main/java/com/kongzue/dialogx/util/views/BlurView.java

@@ -203,7 +203,7 @@ public class BlurView extends View {
                     downsampleFactor = downsampleFactor * radius / 25;
                     radius = 25;
                 }
-                if(mBlurScript!=null)mBlurScript.setRadius(radius);
+                if (mBlurScript != null) mBlurScript.setRadius(radius);
             }
         }
         
@@ -354,6 +354,8 @@ public class BlurView extends View {
                 if (mRadius != 0) {
                     Rect rect = new Rect();
                     getLocalVisibleRect(rect);
+                    rect.right = rect.left + getWidth();
+                    rect.bottom = rect.top + getHeight();
                     mBoundPath = caculateRoundRectPath(rect);
                     canvas.clipPath(mBoundPath);
                 }

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

@@ -119,10 +119,10 @@ public class MaxRelativeLayout extends RelativeLayout {
             if (heightTemp < minHeight) heightTemp = minHeight;
             if (blurView != null) {
                 if (heightMode == EXACTLY){
-                    heightTemp = getMeasuredHeight();
+                    heightTemp = heightSize;
                 }
                 if (widthMode == EXACTLY){
-                    widthTemp = getMeasuredWidth();
+                    widthTemp = widthSize;
                 }
                 LayoutParams lp = (LayoutParams) blurView.getLayoutParams();
                 lp.width = widthTemp;

+ 1 - 1
gradle.properties

@@ -18,5 +18,5 @@ android.useAndroidX=true
 # Automatically convert third-party libraries to use AndroidX
 android.enableJetifier=true
 
-BUILD_VERSION=0.0.37.beta4
+BUILD_VERSION=0.0.37.beta5
 BUILD_VERSION_INT=37