Browse Source

1.替换UI

王鹏鹏 2 years ago
parent
commit
18482cd3d0

+ 1 - 1
baselib/src/main/java/com/yingyangfly/baselib/dialog/LoadingDialog.kt

@@ -29,12 +29,12 @@ class LoadingDialog constructor(context: Context) : AlertDialog(context, R.style
     }
 
     fun initViews() {
-        setDialogLayout(window!!)
         mView = ViewTool.inflateLayoutPixelsById(context, R.layout.dialog_loading, 1194, 834)
         setContentView(mView!!)
         fishImage = findViewById(R.id.fishImage)
         ovlImage = findViewById(R.id.ovlImage)
         setCanceledOnTouchOutside(false)
+        setDialogLayout(window!!)
         init()
     }