Browse Source

5.7.0 新增人员邮箱,姓名正则

FANGLH 9 years ago
parent
commit
43e77c5bd0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      WeiChat/src/main/res/layout/plat_add_people.xml

+ 4 - 1
WeiChat/src/main/res/layout/plat_add_people.xml

@@ -187,7 +187,10 @@
                     android:background="@null"
                     android:hint="请输入(必填)"
                     android:textSize="15sp"
-                    android:gravity="center_vertical|right"/>
+                    android:gravity="center_vertical|right"
+                    whatever:testType="regexp"
+                    whatever:customRegexp="^([\\w-])+(\\.\\w+)*@([\\w-])+((\\.\\w{2,3}){1,3})$"
+                    whatever:testErrorString="请输入正确的邮箱格式"/>
             </RelativeLayout>
             <View
                 android:layout_width="match_parent"