浏览代码

0.0.49.beta7
- 对话框内的 dialogView 引用进行了处理,以及 PopTip 的 baseView,减少在低版本安卓系统上出现内存泄漏的可能性
- FullScreenDialog 新增了方法 hideActivityContentView(boolean) 用于设置是否在显示 FullScreenDialog 时不对 activity 的界面内容进行渲染,这将提升一定的性能,此方法只可以在使用 build 方法构建且在执行show方法之前使用,但这将引发一些问题,例如输入法弹出时 FullScreenDialog 无法上浮等;
- 其他问题修复;

0.0.49.beta6
- 对 BottomMenu 的 setOkButton、setCancelButton、setOtherButton 提供了单独的 OnBottomMenuButtonClickListener 参数接口,可直接提供 BottomMenu 参数的 onClick 回调事件;
- BottomDialog/BottomMenu 新增 set/get OkTextInfo 和 OtherTextInfo 方法;
- 修复 DialogXBaseRelativeLayout 可能存在的嵌套循环调用 requestFocus() 方法的问题;
- 修复关于 WaitDialog 设置背景颜色不生效的问题;

0.0.49.beta5 ready
- ActivityScreenShotImageView 增加静态方法 useHardwareRenderingMode,开启可使用硬件加速渲染模式;
- 修复部分系统下 ActivityScreenShotImageView 在执行回收时触发的“Software rendering doesn't support hardware bitmaps.”异常;
- 其他问题修复;

0.0.49.beta4 ready
- 修复部分系统下 BlurRelativeLayout 或 BlurRelativeLayout 在执行回收时触发的“Calling RS with no Context active.”异常;
- ActivityScreenShotImageView 截图方案更新;

0.0.49.beta4 ready
- 修复在部分设备上由 DialogXBaseRelativeLayout 引发的 StackOverflowError,此问题猜测跟特定版本系统固件存在问题有关;

0.0.49.beta3
- 修复 ActivityScreenShotImageView 可能引发的“Software rendering doesn’t support hardware bitmaps” 异常;
- 修复 BottomDialog/FullScreenDialog 的滑动事件在内部存在 ScrollController 时,若触摸位置处于 ScrollController 布局外无法滑动对话框的问题;

0.0.49.beta2
- InputInfo新增方法:`getInputFilters()`、`setInputFilters(InputFilter[] inputFilters)`、`addInputFilter(InputFilter inputFilter)` 和 `removeInputFilter(InputFilter inputFilter)`(issues:332);
- 尝试性修复 DialogFragment 模式实现下的 WaitDialog 内存泄漏问题(issues:334);
- 修复关于DialogFragmentImpl引发的空指针问题此问题(issues:335);

0.0.49.beta1
- 修复 BlurRelativeLayout 和 BlurLinearLayout 在 iOS 主题下使用 DialogFragment 模式时存在的渲染宽度和高度 <=0 导致的异常(issues:324);
- 修复 IOS 主题下可能存在的 `RSInvalidStateException: Calling RS with no Context active` 异常问题(issues:327);
- 修复可能存在的高频启关对话框过程中,因UI未完成构建被关闭引发的空指针异常(issues:331);

Kongzue 1 年之前
父节点
当前提交
7eb1e489b1
共有 1 个文件被更改,包括 20 次插入20 次删除
  1. 20 20
      DialogX/src/main/java/com/kongzue/dialogx/dialogs/GuideDialog.java

+ 20 - 20
DialogX/src/main/java/com/kongzue/dialogx/dialogs/GuideDialog.java

@@ -69,13 +69,13 @@ public class GuideDialog extends CustomDialog {
     
     public GuideDialog(View baseView, STAGE_LIGHT_TYPE stageLightType) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.stageLightType = stageLightType;
     }
     
     public GuideDialog(View baseView, STAGE_LIGHT_TYPE stageLightType, OnBindView<CustomDialog> onBindView, int alignBaseViewGravity) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.stageLightType = stageLightType;
         this.onBindView = onBindView;
         this.alignViewGravity = alignBaseViewGravity;
@@ -83,7 +83,7 @@ public class GuideDialog extends CustomDialog {
     
     public GuideDialog(View baseView, STAGE_LIGHT_TYPE stageLightType, int tipImageResId, int alignBaseViewGravity) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.tipImage = getResources().getDrawable(tipImageResId);
         this.stageLightType = stageLightType;
         this.alignViewGravity = alignBaseViewGravity;
@@ -91,7 +91,7 @@ public class GuideDialog extends CustomDialog {
     
     public GuideDialog(View baseView, STAGE_LIGHT_TYPE stageLightType, Bitmap tipImage, int alignBaseViewGravity) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.tipImage = new BitmapDrawable(getResources(), tipImage);
         this.stageLightType = stageLightType;
         this.alignViewGravity = alignBaseViewGravity;
@@ -99,7 +99,7 @@ public class GuideDialog extends CustomDialog {
     
     public GuideDialog(View baseView, STAGE_LIGHT_TYPE stageLightType, Drawable tipImage, int alignBaseViewGravity) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.tipImage = tipImage;
         this.stageLightType = stageLightType;
         this.alignViewGravity = alignBaseViewGravity;
@@ -151,60 +151,60 @@ public class GuideDialog extends CustomDialog {
     
     public GuideDialog(View baseView, int tipImageResId) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.tipImage = getResources().getDrawable(tipImageResId);
     }
     
     public GuideDialog(View baseView, Bitmap tipImage) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.tipImage = new BitmapDrawable(getResources(), tipImage);
     }
     
     public GuideDialog(View baseView, Drawable tipImage) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.tipImage = tipImage;
     }
     
     public GuideDialog(View baseView, STAGE_LIGHT_TYPE stageLightType, int tipImageResId) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.stageLightType = stageLightType;
         this.tipImage = getResources().getDrawable(tipImageResId);
     }
     
     public GuideDialog(View baseView, STAGE_LIGHT_TYPE stageLightType, Bitmap tipImage) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.stageLightType = stageLightType;
         this.tipImage = new BitmapDrawable(getResources(), tipImage);
     }
     
     public GuideDialog(View baseView, STAGE_LIGHT_TYPE stageLightType, Drawable tipImage) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.stageLightType = stageLightType;
         this.tipImage = tipImage;
     }
     
     public GuideDialog(View baseView, int tipImageResId, int alignBaseViewGravity) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.alignViewGravity = alignBaseViewGravity;
         this.tipImage = getResources().getDrawable(tipImageResId);
     }
     
     public GuideDialog(View baseView, Bitmap tipImage, int alignBaseViewGravity) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.alignViewGravity = alignBaseViewGravity;
         this.tipImage = new BitmapDrawable(getResources(), tipImage);
     }
     
     public GuideDialog(View baseView, Drawable tipImage, int alignBaseViewGravity) {
         this();
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.alignViewGravity = alignBaseViewGravity;
         this.tipImage = tipImage;
     }
@@ -427,7 +427,7 @@ public class GuideDialog extends CustomDialog {
     }
     
     public GuideDialog setAlignBaseViewGravity(View baseView, int alignGravity) {
-        this.baseView = baseView;
+        this.baseView(baseView);
         this.alignViewGravity = alignGravity;
         baseViewLoc = new int[4];
         baseView.getLocationOnScreen(baseViewLoc);
@@ -436,7 +436,7 @@ public class GuideDialog extends CustomDialog {
     }
     
     public GuideDialog setAlignBaseViewGravity(View baseView) {
-        this.baseView = baseView;
+        this.baseView(baseView);
         baseViewLoc = new int[4];
         baseView.getLocationOnScreen(baseViewLoc);
         setFullScreen(true);
@@ -445,9 +445,9 @@ public class GuideDialog extends CustomDialog {
     
     public GuideDialog setAlignBaseViewGravity(int alignGravity) {
         this.alignViewGravity = alignGravity;
-        if (baseView != null) {
+        if (baseView() != null) {
             baseViewLoc = new int[4];
-            baseView.getLocationOnScreen(baseViewLoc);
+            baseView().getLocationOnScreen(baseViewLoc);
         }
         setFullScreen(true);
         return this;
@@ -522,7 +522,7 @@ public class GuideDialog extends CustomDialog {
     @Override
     protected void onDialogShow() {
         super.onDialogShow();
-        if (baseView == null) {
+        if (baseView() == null) {
             super.setMaskColor(maskColor == null ? getColor(R.color.black50) : maskColor);
         }
     }
@@ -550,7 +550,7 @@ public class GuideDialog extends CustomDialog {
             };
             onBindView.bindParent(getDialogImpl().boxCustom, me);
         }
-        if (getOnStageLightPathClickListener() != null && baseView != null) {
+        if (getOnStageLightPathClickListener() != null && baseView() != null) {
             stageLightPathStub = new View(getOwnActivity());
             stageLightPathStub.setOnClickListener(new View.OnClickListener() {
                 @Override