|
@@ -17,10 +17,11 @@
|
|
|
android:orientation="vertical">
|
|
android:orientation="vertical">
|
|
|
<RelativeLayout
|
|
<RelativeLayout
|
|
|
style="@style/IMTbleLine2"
|
|
style="@style/IMTbleLine2"
|
|
|
- android:layout_height="50dp"
|
|
|
|
|
|
|
+ android:minHeight="45dp"
|
|
|
android:background="@color/white">
|
|
android:background="@color/white">
|
|
|
<TextView
|
|
<TextView
|
|
|
style="@style/form_relative_left_text"
|
|
style="@style/form_relative_left_text"
|
|
|
|
|
+ android:id="@+id/name_tv"
|
|
|
android:text="姓 名"
|
|
android:text="姓 名"
|
|
|
android:layout_marginLeft="0dp"
|
|
android:layout_marginLeft="0dp"
|
|
|
android:textColor="@color/text_main"
|
|
android:textColor="@color/text_main"
|
|
@@ -32,6 +33,7 @@
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:textColor="@color/dark_dark_grey"
|
|
android:textColor="@color/dark_dark_grey"
|
|
|
android:padding="10dp"
|
|
android:padding="10dp"
|
|
|
|
|
+ android:layout_toRightOf="@+id/name_tv"
|
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentRight="true"
|
|
|
android:layout_centerVertical="true"
|
|
android:layout_centerVertical="true"
|
|
|
android:background="@null"
|
|
android:background="@null"
|
|
@@ -39,8 +41,9 @@
|
|
|
android:textSize="15sp"
|
|
android:textSize="15sp"
|
|
|
android:gravity="center_vertical|right"
|
|
android:gravity="center_vertical|right"
|
|
|
whatever:testType="regexp"
|
|
whatever:testType="regexp"
|
|
|
- whatever:customRegexp="^[A-Za-z\u4e00-\u9fa5]+$"
|
|
|
|
|
- whatever:testErrorString="姓名只能为中、英文"/>
|
|
|
|
|
|
|
+ whatever:customRegexp="^[A-Za-z\u4e00-\u9fa5]{1,24}+$"
|
|
|
|
|
+ whatever:testErrorString="姓名只能为12个字符之内的中、英文"
|
|
|
|
|
+ android:layout_marginLeft="10dp"/>
|
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
|
<View
|
|
<View
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
@@ -141,6 +144,7 @@
|
|
|
android:layout_height="50dp"
|
|
android:layout_height="50dp"
|
|
|
android:background="@color/white">
|
|
android:background="@color/white">
|
|
|
<TextView
|
|
<TextView
|
|
|
|
|
+ android:id="@+id/tel_tv"
|
|
|
style="@style/form_relative_left_text"
|
|
style="@style/form_relative_left_text"
|
|
|
android:text="电话号码"
|
|
android:text="电话号码"
|
|
|
android:layout_marginLeft="0dp"
|
|
android:layout_marginLeft="0dp"
|
|
@@ -159,7 +163,10 @@
|
|
|
android:hint="请输入(必填)"
|
|
android:hint="请输入(必填)"
|
|
|
android:textSize="15sp"
|
|
android:textSize="15sp"
|
|
|
android:inputType="number"
|
|
android:inputType="number"
|
|
|
- android:gravity="center_vertical|right"/>
|
|
|
|
|
|
|
+ android:gravity="center_vertical|right"
|
|
|
|
|
+ android:layout_toRightOf="@id/tel_tv"
|
|
|
|
|
+ android:layout_marginLeft="5dp"
|
|
|
|
|
+ android:maxLength="11"/>
|
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
|
<View
|
|
<View
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
@@ -167,9 +174,10 @@
|
|
|
android:background="@color/item_line" />
|
|
android:background="@color/item_line" />
|
|
|
<RelativeLayout
|
|
<RelativeLayout
|
|
|
style="@style/IMTbleLine2"
|
|
style="@style/IMTbleLine2"
|
|
|
- android:layout_height="50dp"
|
|
|
|
|
|
|
+ android:minHeight="40dp"
|
|
|
android:background="@color/white">
|
|
android:background="@color/white">
|
|
|
<TextView
|
|
<TextView
|
|
|
|
|
+ android:id="@+id/email_tv"
|
|
|
style="@style/form_relative_left_text"
|
|
style="@style/form_relative_left_text"
|
|
|
android:text="邮箱地址"
|
|
android:text="邮箱地址"
|
|
|
android:layout_marginLeft="0dp"
|
|
android:layout_marginLeft="0dp"
|
|
@@ -177,7 +185,7 @@
|
|
|
android:textSize="15sp"/>
|
|
android:textSize="15sp"/>
|
|
|
|
|
|
|
|
<com.andreabaccega.widget.FormEditText xmlns:editTextFormExample="http://schemas.android.com/apk/res-auto"
|
|
<com.andreabaccega.widget.FormEditText xmlns:editTextFormExample="http://schemas.android.com/apk/res-auto"
|
|
|
- android:id="@+id/user_email_tv"
|
|
|
|
|
|
|
+ android:id="@+id/user_email_tv"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:textColor="@color/dark_dark_grey"
|
|
android:textColor="@color/dark_dark_grey"
|
|
@@ -185,12 +193,15 @@
|
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentRight="true"
|
|
|
android:layout_centerVertical="true"
|
|
android:layout_centerVertical="true"
|
|
|
android:background="@null"
|
|
android:background="@null"
|
|
|
|
|
+ android:layout_toRightOf="@+id/email_tv"
|
|
|
android:hint="请输入(必填)"
|
|
android:hint="请输入(必填)"
|
|
|
android:textSize="15sp"
|
|
android:textSize="15sp"
|
|
|
android:gravity="center_vertical|right"
|
|
android:gravity="center_vertical|right"
|
|
|
whatever:testType="regexp"
|
|
whatever:testType="regexp"
|
|
|
whatever:customRegexp="^([\\w-])+(\\.\\w+)*@([\\w-])+((\\.\\w{2,3}){1,3})$"
|
|
whatever:customRegexp="^([\\w-])+(\\.\\w+)*@([\\w-])+((\\.\\w{2,3}){1,3})$"
|
|
|
- whatever:testErrorString="请输入正确的邮箱格式"/>
|
|
|
|
|
|
|
+ whatever:testErrorString="请输入正确的邮箱格式"
|
|
|
|
|
+ android:maxLength="50"
|
|
|
|
|
+ android:layout_marginLeft="10dp"/>
|
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
|
<View
|
|
<View
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|