| <?xml version="1.0" encoding="utf-8"?> | 
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | 
|     xmlns:app="http://schemas.android.com/apk/res-auto" | 
|     android:layout_width="match_parent" | 
|     android:layout_height="match_parent"> | 
|   | 
|     <com.dayu.baselibrary.view.TitleBar | 
|         android:id="@+id/titleBar" | 
|         android:layout_width="match_parent" | 
|         android:layout_height="@dimen/dimen_title_height" | 
|         android:background="@color/title_bar_bg" | 
|         app:centerText="新卡开户" | 
|         app:leftImage="@mipmap/icon_back" /> | 
|   | 
|     <ScrollView | 
|         android:layout_width="match_parent" | 
|         android:layout_height="match_parent" | 
|         android:layout_above="@+id/newCard_registBtn" | 
|         android:layout_below="@+id/titleBar"> | 
|   | 
|         <LinearLayout | 
|             android:layout_width="match_parent" | 
|             android:layout_height="match_parent" | 
|             android:orientation="vertical"> | 
|   | 
|             <LinearLayout | 
|                 style="@style/newCardLL" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content"> | 
|   | 
|                 <TextView | 
|                     android:layout_width="wrap_content" | 
|                     android:layout_height="wrap_content" | 
|                     android:text="设备序列号:" | 
|                     android:textSize="@dimen/new_card_size" /> | 
|   | 
|                 <TextView | 
|                     android:id="@+id/newCard_villageNum" | 
|                     android:layout_width="match_parent" | 
|                     android:layout_height="wrap_content" | 
|                     android:inputType="number" | 
|                     android:textSize="@dimen/new_card_size" /> | 
|   | 
|   | 
|             </LinearLayout> | 
|   | 
|             <LinearLayout | 
|                 style="@style/newCardLL" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:orientation="horizontal"> | 
|   | 
|                 <TextView | 
|                     android:layout_width="wrap_content" | 
|                     android:layout_height="wrap_content" | 
|                     android:text="姓 名:" | 
|                     android:textSize="@dimen/new_card_size" /> | 
|   | 
|                 <EditText | 
|                     android:id="@+id/newCard_name" | 
|                     android:layout_width="0dp" | 
|                     android:layout_height="wrap_content" | 
|                     android:layout_weight="1" | 
|                     android:textSize="@dimen/new_card_size" /> | 
|   | 
|                 <ImageView | 
|                     android:id="@+id/newCard_scanBtn" | 
|                     android:layout_width="45dp" | 
|                     android:layout_height="45dp" | 
|                     android:visibility="visible" | 
|                     android:padding="10dp" | 
|                     android:src="@mipmap/icon_scan" /> | 
|   | 
|             </LinearLayout> | 
|   | 
|             <LinearLayout | 
|                 style="@style/newCardLL" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content"> | 
|   | 
|                 <TextView | 
|                     android:layout_width="wrap_content" | 
|                     android:layout_height="wrap_content" | 
|                     android:text="身份证号:" | 
|                     android:textSize="@dimen/new_card_size" /> | 
|   | 
|                 <EditText | 
|                     android:id="@+id/newCard_id" | 
|                     android:layout_width="match_parent" | 
|                     android:layout_height="wrap_content" | 
|                     android:digits="0123456789Xx" | 
|                     android:inputType="text" | 
|                     android:maxLength="18" | 
|                     android:textSize="@dimen/new_card_size" /> | 
|   | 
|   | 
|             </LinearLayout> | 
|   | 
|             <TextView | 
|                 android:id="@+id/newCard_idTip" | 
|                 style="@style/newCardLL" | 
|                 android:layout_width="wrap_content" | 
|                 android:layout_height="wrap_content" | 
|                 android:text="扫描后请核对身份信息无误" | 
|                 android:textColor="#FF4500" | 
|                 android:visibility="gone" /> | 
|   | 
|   | 
|             <LinearLayout | 
|                 style="@style/newCardLL" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:visibility="gone"> | 
|   | 
|                 <TextView | 
|                     android:layout_width="wrap_content" | 
|                     android:layout_height="wrap_content" | 
|                     android:text="水权内水量:" | 
|                     android:textSize="@dimen/new_card_size" /> | 
|   | 
|                 <EditText | 
|                     android:id="@+id/newCard_water" | 
|                     android:layout_width="match_parent" | 
|                     android:layout_height="wrap_content" | 
|                     android:inputType="number" | 
|                     android:maxLength="5" | 
|   | 
|                     android:textSize="@dimen/new_card_size" /> | 
|   | 
|   | 
|             </LinearLayout> | 
|   | 
|             <LinearLayout | 
|                 style="@style/newCardLL" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content"> | 
|   | 
|                 <TextView | 
|                     android:layout_width="wrap_content" | 
|                     android:layout_height="wrap_content" | 
|                     android:text="电  话:" | 
|                     android:textSize="@dimen/new_card_size" /> | 
|   | 
|                 <EditText | 
|                     android:id="@+id/newCard_phone" | 
|                     android:layout_width="match_parent" | 
|                     android:layout_height="wrap_content" | 
|                     android:inputType="number" | 
|                     android:maxLength="11" | 
|                     android:textSize="@dimen/new_card_size" /> | 
|             </LinearLayout> | 
|   | 
|   | 
|         </LinearLayout> | 
|   | 
|   | 
|     </ScrollView> | 
|   | 
|     <TextView | 
|         android:id="@+id/newCard_registBtn" | 
|         android:layout_width="match_parent" | 
|         android:layout_height="50dp" | 
|         android:layout_alignParentBottom="true" | 
|         android:background="@color/title_bg" | 
|         android:gravity="center" | 
|         android:text="开户" | 
|         android:textColor="#000000" | 
|         android:textSize="@dimen/new_card_size" /> | 
| </RelativeLayout> |