皇甫睿欣 7 years ago
parent
commit
d73ac74194

+ 4 - 1
laraver-core/src/main/java/com/kuxuan/laraver/ui/LaraverLoader.java

1
 package com.kuxuan.laraver.ui;
1
 package com.kuxuan.laraver.ui;
2
 
2
 
3
 import android.content.Context;
3
 import android.content.Context;
4
+import android.support.v7.app.AppCompatDialog;
4
 
5
 
5
 /**
6
 /**
6
  *
7
  *
11
 public class LaraverLoader {
12
 public class LaraverLoader {
12
 
13
 
13
     public static void showLoading(Context context,String type){
14
     public static void showLoading(Context context,String type){
14
-        final AppCom
15
+        final AppCompatDialog dialog = new AppCompatDialog(context);
16
+
17
+
15
     }
18
     }
16
 }
19
 }

+ 14 - 0
laraver-core/src/main/res/values/style.xml

1
+<?xml version="1.0" encoding="utf-8"?>
2
+<resources>
3
+
4
+    <style name="dialog" parent="@android:style/Theme.Dialog">
5
+        <!--去掉边框-->
6
+        <item name="android:windowFrame">@null</item>
7
+        <!--悬浮-->
8
+        <item name="android:windowIsFloating">true</item>
9
+        <!--半透明-->
10
+        <item name="android:windowIsTranslucent">false</item>
11
+
12
+
13
+    </style>
14
+</resources>