<?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" 
 | 
    android:background="#F5F7FA"> 
 | 
  
 | 
    <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" 
 | 
        android:elevation="4dp" 
 | 
        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" 
 | 
        android:fillViewport="true" 
 | 
        android:scrollbars="none"> 
 | 
  
 | 
        <LinearLayout 
 | 
            android:layout_width="match_parent" 
 | 
            android:layout_height="wrap_content" 
 | 
            android:orientation="vertical" 
 | 
            android:padding="16dp"> 
 | 
  
 | 
            <androidx.cardview.widget.CardView 
 | 
                android:layout_width="match_parent" 
 | 
                android:layout_height="wrap_content" 
 | 
                android:layout_marginBottom="16dp" 
 | 
                app:cardCornerRadius="8dp" 
 | 
                app:cardElevation="2dp"> 
 | 
  
 | 
                <LinearLayout 
 | 
                    android:layout_width="match_parent" 
 | 
                    android:layout_height="wrap_content" 
 | 
                    android:orientation="vertical" 
 | 
                    android:padding="16dp"> 
 | 
  
 | 
                    <TextView 
 | 
                        android:layout_width="wrap_content" 
 | 
                        android:layout_height="wrap_content" 
 | 
                        android:layout_marginBottom="16dp" 
 | 
                        android:text="基本信息" 
 | 
                        android:textColor="#333333" 
 | 
                        android:textSize="18sp" 
 | 
                        android:textStyle="bold" /> 
 | 
  
 | 
                    <LinearLayout 
 | 
                        android:layout_width="match_parent" 
 | 
                        android:layout_height="wrap_content" 
 | 
                        android:layout_marginBottom="16dp" 
 | 
                        android:gravity="center_vertical" 
 | 
                        android:orientation="horizontal"> 
 | 
  
 | 
                        <TextView 
 | 
                            android:layout_width="wrap_content" 
 | 
                            android:layout_height="wrap_content" 
 | 
                            android:text="@string/eq_no" 
 | 
                            android:textColor="#666666" 
 | 
                            android:textSize="@dimen/new_card_size" /> 
 | 
  
 | 
                        <TextView 
 | 
                            android:id="@+id/newCard_arerNumber" 
 | 
                            android:layout_width="match_parent" 
 | 
                            android:layout_height="wrap_content" 
 | 
                            android:layout_marginStart="8dp" 
 | 
                            android:inputType="number" 
 | 
                            android:textColor="#333333" 
 | 
                            android:textSize="@dimen/new_card_size" /> 
 | 
                    </LinearLayout> 
 | 
  
 | 
                    <LinearLayout 
 | 
                        android:layout_width="match_parent" 
 | 
                        android:layout_height="wrap_content" 
 | 
                        android:layout_marginBottom="16dp" 
 | 
                        android:gravity="center_vertical" 
 | 
                        android:orientation="horizontal"> 
 | 
  
 | 
                        <TextView 
 | 
                            android:layout_width="80dp" 
 | 
                            android:layout_height="wrap_content" 
 | 
                            android:text="姓名" 
 | 
                            android:textColor="#666666" 
 | 
                            android:textSize="@dimen/new_card_size" /> 
 | 
  
 | 
                        <LinearLayout 
 | 
                            android:layout_width="0dp" 
 | 
                            android:layout_height="wrap_content" 
 | 
                            android:layout_weight="1" 
 | 
                            android:background="#FFFFFF" 
 | 
                            android:orientation="vertical"> 
 | 
  
 | 
                            <EditText 
 | 
                                android:id="@+id/newCard_name" 
 | 
                                android:layout_width="match_parent" 
 | 
                                android:layout_height="wrap_content" 
 | 
                                android:background="@null" 
 | 
                                android:hint="请输入姓名" 
 | 
                                android:inputType="textPersonName" 
 | 
                                android:padding="12dp" 
 | 
                                android:textSize="@dimen/new_card_size" /> 
 | 
                        </LinearLayout> 
 | 
  
 | 
                        <ImageView 
 | 
                            android:id="@+id/newCard_scanBtn" 
 | 
                            android:layout_width="45dp" 
 | 
                            android:layout_height="45dp" 
 | 
                            android:background="?attr/selectableItemBackgroundBorderless" 
 | 
                            android:padding="10dp" 
 | 
                            android:src="@mipmap/icon_scan" 
 | 
                             /> 
 | 
                    </LinearLayout> 
 | 
  
 | 
                    <LinearLayout 
 | 
                        android:layout_width="match_parent" 
 | 
                        android:layout_height="wrap_content" 
 | 
                        android:layout_marginBottom="16dp" 
 | 
                        android:gravity="center_vertical" 
 | 
                        android:orientation="horizontal"> 
 | 
  
 | 
                        <TextView 
 | 
                            android:layout_width="80dp" 
 | 
                            android:layout_height="wrap_content" 
 | 
                            android:text="身份证号" 
 | 
                            android:textColor="#666666" 
 | 
                            android:textSize="@dimen/new_card_size" /> 
 | 
  
 | 
                        <LinearLayout 
 | 
                            android:layout_width="match_parent" 
 | 
                            android:layout_height="wrap_content" 
 | 
                            android:background="#FFFFFF" 
 | 
                            android:orientation="vertical"> 
 | 
  
 | 
                            <EditText 
 | 
                                android:id="@+id/newCard_id" 
 | 
                                android:layout_width="match_parent" 
 | 
                                android:layout_height="wrap_content" 
 | 
                                android:background="@null" 
 | 
                                android:digits="0123456789Xx" 
 | 
                                android:hint="请输入身份证号" 
 | 
                                android:inputType="text" 
 | 
                                android:maxLength="18" 
 | 
                                android:padding="12dp" 
 | 
                                android:textSize="@dimen/new_card_size" /> 
 | 
                        </LinearLayout> 
 | 
                    </LinearLayout> 
 | 
  
 | 
                    <TextView 
 | 
                        android:id="@+id/newCard_idTip" 
 | 
                        android:layout_width="wrap_content" 
 | 
                        android:layout_height="wrap_content" 
 | 
                        android:layout_marginBottom="16dp" 
 | 
                        android:text="扫描后请核对身份信息无误" 
 | 
                        android:textColor="#FF4500" 
 | 
                        android:visibility="gone" /> 
 | 
                </LinearLayout> 
 | 
            </androidx.cardview.widget.CardView> 
 | 
  
 | 
            <androidx.cardview.widget.CardView 
 | 
                android:layout_width="match_parent" 
 | 
                android:layout_height="wrap_content" 
 | 
                android:layout_marginBottom="16dp" 
 | 
                app:cardCornerRadius="8dp" 
 | 
                app:cardElevation="2dp"> 
 | 
  
 | 
                <LinearLayout 
 | 
                    android:layout_width="match_parent" 
 | 
                    android:layout_height="wrap_content" 
 | 
                    android:orientation="vertical" 
 | 
                    android:padding="16dp"> 
 | 
  
 | 
                    <TextView 
 | 
                        android:layout_width="wrap_content" 
 | 
                        android:layout_height="wrap_content" 
 | 
                        android:layout_marginBottom="16dp" 
 | 
                        android:text="联系方式" 
 | 
                        android:textColor="#333333" 
 | 
                        android:textSize="18sp" 
 | 
                        android:textStyle="bold" /> 
 | 
  
 | 
                    <LinearLayout 
 | 
                        android:layout_width="match_parent" 
 | 
                        android:layout_height="wrap_content" 
 | 
                        android:layout_marginBottom="16dp" 
 | 
                        android:gravity="center_vertical" 
 | 
                        android:orientation="horizontal"> 
 | 
  
 | 
                        <TextView 
 | 
                            android:layout_width="80dp" 
 | 
                            android:layout_height="wrap_content" 
 | 
                            android:text="电话" 
 | 
                            android:textColor="#666666" 
 | 
                            android:textSize="@dimen/new_card_size" /> 
 | 
  
 | 
                        <LinearLayout 
 | 
                            android:layout_width="match_parent" 
 | 
                            android:layout_height="wrap_content" 
 | 
                            android:background="#FFFFFF" 
 | 
                            android:orientation="vertical"> 
 | 
  
 | 
                            <EditText 
 | 
                                android:id="@+id/newCard_phone" 
 | 
                                android:layout_width="match_parent" 
 | 
                                android:layout_height="wrap_content" 
 | 
                                android:background="@null" 
 | 
                                android:hint="请输入手机号码" 
 | 
                                android:inputType="phone" 
 | 
                                android:maxLength="11" 
 | 
                                android:padding="12dp" 
 | 
                                android:textSize="@dimen/new_card_size" /> 
 | 
                        </LinearLayout> 
 | 
                    </LinearLayout> 
 | 
                </LinearLayout> 
 | 
            </androidx.cardview.widget.CardView> 
 | 
  
 | 
            <androidx.cardview.widget.CardView 
 | 
                android:layout_width="match_parent" 
 | 
                android:layout_height="wrap_content" 
 | 
                app:cardCornerRadius="8dp" 
 | 
                app:cardElevation="2dp"> 
 | 
  
 | 
                <LinearLayout 
 | 
                    android:layout_width="match_parent" 
 | 
                    android:layout_height="wrap_content" 
 | 
                    android:orientation="vertical" 
 | 
                    android:padding="16dp"> 
 | 
  
 | 
                    <TextView 
 | 
                        android:layout_width="wrap_content" 
 | 
                        android:layout_height="wrap_content" 
 | 
                        android:layout_marginBottom="16dp" 
 | 
                        android:text="费用信息" 
 | 
                        android:textColor="#333333" 
 | 
                        android:textSize="18sp" 
 | 
                        android:textStyle="bold" /> 
 | 
  
 | 
                    <LinearLayout 
 | 
                        android:layout_width="match_parent" 
 | 
                        android:layout_height="wrap_content" 
 | 
                        android:gravity="center_vertical" 
 | 
                        android:orientation="horizontal"> 
 | 
  
 | 
                        <TextView 
 | 
                            android:layout_width="80dp" 
 | 
                            android:layout_height="wrap_content" 
 | 
                            android:text="工本费(元)" 
 | 
                            android:textColor="#666666" 
 | 
                            android:textSize="@dimen/new_card_size" /> 
 | 
  
 | 
                        <LinearLayout 
 | 
                            android:layout_width="match_parent" 
 | 
                            android:layout_height="wrap_content" 
 | 
                            android:background="#FFFFFF" 
 | 
                            android:orientation="vertical"> 
 | 
  
 | 
                            <EditText 
 | 
                                android:id="@+id/newCard_morny" 
 | 
                                android:layout_width="match_parent" 
 | 
                                android:layout_height="wrap_content" 
 | 
                                android:background="@null" 
 | 
                                android:hint="请输入工本费" 
 | 
                                android:inputType="numberDecimal" 
 | 
                                android:padding="12dp" 
 | 
                                android:textSize="@dimen/new_card_size" /> 
 | 
                        </LinearLayout> 
 | 
                    </LinearLayout> 
 | 
                </LinearLayout> 
 | 
            </androidx.cardview.widget.CardView> 
 | 
  
 | 
            <!-- 隐藏的水权内水量部分 --> 
 | 
            <LinearLayout 
 | 
                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> 
 | 
    </ScrollView> 
 | 
  
 | 
    <TextView 
 | 
        android:id="@+id/newCard_registBtn" 
 | 
        android:layout_width="match_parent" 
 | 
        android:layout_height="56dp" 
 | 
        android:layout_alignParentBottom="true" 
 | 
        android:layout_marginStart="16dp" 
 | 
        android:layout_marginEnd="16dp" 
 | 
        android:layout_marginBottom="16dp" 
 | 
        android:background="#4285F4" 
 | 
        android:gravity="center" 
 | 
        android:text="确认开户" 
 | 
        android:textColor="#FFFFFF" 
 | 
        android:textSize="16sp" /> 
 | 
</RelativeLayout> 
 |