hanjing 6 lat temu
rodzic
commit
0234455b6e

+ 1 - 1
app/src/main/res/layout/fragment_sign_in.xml

@@ -54,7 +54,7 @@
 
         <EditText
             android:id="@+id/phone_number_box"
-            style="@style/login_edit_style"
+            style="@style/login_edit_style_mobile"
             android:hint="请输入手机号"
             android:inputType="phone"
             android:maxLength="11" />

+ 1 - 1
app/src/main/res/layout/fragment_sign_up.xml

@@ -79,7 +79,7 @@
 
         <EditText
             android:id="@+id/phone_number_box"
-            style="@style/login_edit_style"
+            style="@style/login_edit_style_mobile"
             android:hint="请输入手机号"
             android:inputType="phone"
             android:maxLength="11" />

+ 2 - 1
app/src/main/res/values/str_public_strings.xml

@@ -6,7 +6,8 @@
     <string name="toast_double_click_exit_app">再次点击退出应用</string>
 
     <!--digits-->
-    <string name="digits_username">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789</string>
+    <string name="digits_username">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@_-.</string>
+    <string name="digits_mobile">+0123456789</string>
     <string name="digits_captcha">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789</string>
     <string name="digits_password">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~@#$%^*()-!=_+.</string>
 

+ 3 - 0
app/src/main/res/values/styles.xml

@@ -65,6 +65,9 @@
     <style name="login_edit_style_name" parent="login_edit_style">
         <item name="android:digits">@string/digits_username</item>
     </style>
+    <style name="login_edit_style_mobile" parent="login_edit_style">
+        <item name="android:digits">@string/digits_mobile</item>
+    </style>
     <style name="login_edit_style_pwd" parent="login_edit_style">
         <item name="android:digits">@string/digits_password</item>
     </style>