浏览代码

update 0.0.18 ver.

kongzue 4 年之前
父节点
当前提交
e7991302b7

+ 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.17"
+version = "0.0.18"
 
 android {
     compileSdkVersion 30
@@ -14,8 +14,8 @@ android {
     defaultConfig {
         minSdkVersion 21
         targetSdkVersion 30
-        versionCode 17
-        versionName "0.0.17"
+        versionCode 18
+        versionName "0.0.18"
 
         consumerProguardFiles "consumer-rules.pro"
 

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

@@ -79,8 +79,8 @@ public class CustomDialog extends BaseDialog {
     
     public class DialogImpl implements DialogConvertViewInterface {
         
-        DialogXBaseRelativeLayout boxRoot;
-        RelativeLayout boxCustom;
+        public DialogXBaseRelativeLayout boxRoot;
+        public RelativeLayout boxCustom;
         
         public DialogImpl(View convertView) {
             boxRoot = convertView.findViewById(R.id.box_root);

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

@@ -184,20 +184,20 @@ public class MessageDialog extends BaseDialog {
         });
     }
     
-    class DialogImpl implements DialogConvertViewInterface {
+    public class DialogImpl implements DialogConvertViewInterface {
         BlurView blurView;
         
-        DialogXBaseRelativeLayout boxRoot;
-        MaxRelativeLayout bkg;
-        TextView txtDialogTitle;
-        TextView txtDialogTip;
-        RelativeLayout boxCustom;
-        EditText txtInput;
-        LinearLayout boxButton;
-        TextView btnSelectOther;
-        View spaceOtherButton;
-        TextView btnSelectNegative;
-        TextView btnSelectPositive;
+        public DialogXBaseRelativeLayout boxRoot;
+        public MaxRelativeLayout bkg;
+        public TextView txtDialogTitle;
+        public TextView txtDialogTip;
+        public RelativeLayout boxCustom;
+        public EditText txtInput;
+        public LinearLayout boxButton;
+        public TextView btnSelectOther;
+        public View spaceOtherButton;
+        public TextView btnSelectNegative;
+        public TextView btnSelectPositive;
         
         public DialogImpl(View convertView) {
             boxRoot = convertView.findViewById(R.id.box_root);

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

@@ -297,12 +297,12 @@ public class PopTip extends BaseDialog {
     
     public class DialogImpl implements DialogConvertViewInterface {
         
-        DialogXBaseRelativeLayout boxRoot;
-        LinearLayout boxBody;
-        ImageView imgDialogxPopIcon;
-        TextView txtDialogxPopText;
-        RelativeLayout boxCustom;
-        TextView txtDialogxButton;
+        public DialogXBaseRelativeLayout boxRoot;
+        public LinearLayout boxBody;
+        public ImageView imgDialogxPopIcon;
+        public TextView txtDialogxPopText;
+        public RelativeLayout boxCustom;
+        public TextView txtDialogxButton;
         
         public DialogImpl(View convertView) {
             boxRoot = convertView.findViewById(R.id.box_root);

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

@@ -166,14 +166,14 @@ public class WaitDialog extends BaseDialog {
     
     protected DialogImpl dialogImpl;
     
-    class DialogImpl implements DialogConvertViewInterface {
-        DialogXBaseRelativeLayout boxRoot;
-        MaxRelativeLayout bkg;
-        BlurView blurView;
-        RelativeLayout boxProgress;
-        ProgressViewInterface progressView;
-        RelativeLayout boxCustomView;
-        TextView txtInfo;
+    public class DialogImpl implements DialogConvertViewInterface {
+        public DialogXBaseRelativeLayout boxRoot;
+        public MaxRelativeLayout bkg;
+        public BlurView blurView;
+        public RelativeLayout boxProgress;
+        public ProgressViewInterface progressView;
+        public RelativeLayout boxCustomView;
+        public TextView txtInfo;
         
         public DialogImpl(View convertView) {
             boxRoot = convertView.findViewById(R.id.box_root);

+ 3 - 3
DialogXIOSStyle/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.style.ios"
-version = "0.0.17"
+version = "0.0.18"
 
 android {
     compileSdkVersion 30
@@ -14,8 +14,8 @@ android {
     defaultConfig {
         minSdkVersion 21
         targetSdkVersion 30
-        versionCode 17
-        versionName "0.0.17"
+        versionCode 18
+        versionName "0.0.18"
     }
 
     buildTypes {

+ 3 - 3
DialogXKongzueStyle/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.style.kongzue"
-version = "0.0.17"
+version = "0.0.18"
 
 android {
     compileSdkVersion 30
@@ -14,8 +14,8 @@ android {
     defaultConfig {
         minSdkVersion 21
         targetSdkVersion 30
-        versionCode 17
-        versionName "0.0.17"
+        versionCode 18
+        versionName "0.0.18"
     }
 
     buildTypes {

+ 3 - 3
DialogXMIUIStyle/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.style.miui"
-version = "0.0.17"
+version = "0.0.18"
 
 android {
     compileSdkVersion 30
@@ -14,8 +14,8 @@ android {
     defaultConfig {
         minSdkVersion 21
         targetSdkVersion 30
-        versionCode 17
-        versionName "0.0.17"
+        versionCode 18
+        versionName "0.0.18"
 
     }
 

+ 2 - 2
README.md

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

+ 2 - 2
app/build.gradle

@@ -7,8 +7,8 @@ android {
         applicationId "com.kongzue.dialogxdemo"
         minSdkVersion 21
         targetSdkVersion 30
-        versionCode 17
-        versionName "0.0.17"
+        versionCode 18
+        versionName "0.0.18"
 
         renderscriptTargetApi 21
         renderscriptSupportModeEnabled true    // Enable RS support

+ 2 - 0
app/src/main/java/com/kongzue/dialogxdemo/MainActivity.java

@@ -606,6 +606,8 @@ public class MainActivity extends BaseActivity {
                                 dialog.dismiss();
                             }
                         });
+    
+                        dialog.getDialogImpl().boxRoot.setBackgroundResource(R.color.black40);
                     }
                 }).setFullScreen(true);
             }