Ver código fonte

解决注册界面无法修改服务器IP问题

weizhengliang 2 anos atrás
pai
commit
8eecf28b58

+ 1 - 1
app/src/main/AndroidManifest.xml

@@ -25,7 +25,7 @@
     <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
     <application
         android:allowBackup="true"
-        android:icon="@mipmap/ic_launcher"
+        android:icon="@drawable/ic_lcd_board"
         android:label="@string/javashop_app_name"
         android:supportsRtl="true"
         tools:replace="android:label"

+ 2 - 2
lcd_board/src/main/java/com/wdkl/lcd_board/helper/ServerConfigDialogHelper.java

@@ -133,8 +133,8 @@ public class ServerConfigDialogHelper {
             Window window = callDialog.getWindow();
             window.setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE);
             WindowManager.LayoutParams lp = window.getAttributes();
-            lp.width = 960;
-            lp.height = 240;
+            lp.width = WindowManager.LayoutParams.MATCH_PARENT;
+            lp.height = WindowManager.LayoutParams.MATCH_PARENT;
             lp.gravity = Gravity.CENTER;
             window.setAttributes(lp);
 

+ 5 - 0
lcd_board/src/main/res/drawable/ic_lcd_board.xml

@@ -0,0 +1,5 @@
+<vector android:height="48dp" android:tint="#0A14EE"
+    android:viewportHeight="24" android:viewportWidth="24"
+    android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#FFFFFFFF" android:pathData="M19,7L5,7c-1.1,0 -2,0.9 -2,2v6c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2L21,9c0,-1.1 -0.9,-2 -2,-2zM19,15L5,15L5,9h14v6z"/>
+</vector>

+ 7 - 4
lcd_board/src/main/res/layout/server_config_dialog_lay.xml

@@ -11,8 +11,9 @@
         android:gravity="center">
 
         <LinearLayout
-            android:layout_width="800dp"
-            android:layout_height="wrap_content"
+            android:layout_width="0dp"
+            android:layout_height="match_parent"
+            android:layout_weight="3"
             android:orientation="vertical">
             <TextView
                 android:id="@+id/tv_psw_view"
@@ -35,10 +36,12 @@
 
 
         <LinearLayout
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
+            android:layout_width="0dp"
+            android:layout_height="match_parent"
+            android:layout_weight="1"
             android:layout_marginLeft="10dp"
             android:layout_marginTop="10dp"
+            android:gravity="center"
             android:orientation="vertical">
             <TextView
                 android:id="@+id/btn_delete"