| <?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:orientation="vertical"> | 
|   | 
|     <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:id="@+id/read_userLL" | 
|         android:layout_width="match_parent" | 
|         android:layout_height="match_parent" | 
|         android:layout_below="@id/titleBar" | 
|         android:visibility="gone"> | 
|   | 
|         <LinearLayout | 
|             android:layout_width="match_parent" | 
|             android:layout_height="match_parent" | 
|             android:layout_margin="20dp" | 
|             android:orientation="vertical"> | 
|   | 
|             <TextView | 
|                 android:id="@+id/red_name" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:layout_marginTop="15dp" | 
|                 android:text="姓名:" | 
|                 android:textSize="@dimen/text_size" /> | 
|   | 
|             <LinearLayout | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:layout_marginTop="15dp" | 
|                 android:orientation="horizontal"> | 
|   | 
|                 <TextView | 
|                     android:layout_width="wrap_content" | 
|                     android:layout_height="wrap_content" | 
|                     android:text="卡号:" | 
|                     android:textSize="@dimen/text_size" /> | 
|   | 
|                 <TextView | 
|                     android:id="@+id/red_initCode" | 
|                     android:layout_width="match_parent" | 
|                     android:layout_height="wrap_content" | 
|                     android:text="" | 
|                     android:textSize="@dimen/text_size" /> | 
|             </LinearLayout> | 
|   | 
|   | 
|             <TextView | 
|                 android:id="@+id/red_remainder_blance" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:layout_marginTop="15dp" | 
|                 android:text="剩余金额:" | 
|                 android:textSize="@dimen/text_size" /> | 
|   | 
|             <TextView | 
|                 android:id="@+id/red_remainder_water" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:layout_marginTop="15dp" | 
|                 android:text="剩余水量:" | 
|                 android:textSize="@dimen/text_size" /> | 
|   | 
|             <TextView | 
|                 android:id="@+id/red_rechargeDate" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:layout_marginTop="15dp" | 
|                 android:text="最后购水日期:" | 
|                 android:textSize="@dimen/text_size" | 
|                 android:visibility="visible" /> | 
|   | 
|             <TextView | 
|                 android:id="@+id/red_rechargeNumber" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:layout_marginTop="15dp" | 
|                 android:text="充值次数:" | 
|                 android:textSize="@dimen/text_size" | 
|                 android:visibility="visible" /> | 
|   | 
|             <TextView | 
|                 android:id="@+id/red_total_water" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:layout_marginTop="15dp" | 
|                 android:text="总用水量:" | 
|                 android:textSize="@dimen/text_size" | 
|                 android:visibility="visible" /> | 
|   | 
|             <TextView | 
|                 android:id="@+id/red_total_power" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:layout_marginTop="15dp" | 
|                 android:text="总用电量:" | 
|                 android:textSize="@dimen/text_size" | 
|                 android:visibility="visible" /> | 
|   | 
|             <TextView | 
|                 android:id="@+id/red_statu" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:layout_marginTop="15dp" | 
|                 android:text="卡状态:" | 
|                 android:textSize="@dimen/text_size" /> | 
|   | 
|         </LinearLayout> | 
|   | 
|     </ScrollView> | 
|   | 
|   | 
|     <LinearLayout | 
|         android:id="@+id/read_cardTypeLL" | 
|         android:layout_width="match_parent" | 
|         android:layout_height="match_parent" | 
|         android:layout_below="@id/titleBar" | 
|         android:gravity="center" | 
|         android:orientation="vertical" | 
|         android:visibility="visible"> | 
|   | 
|         <TextView | 
|             android:id="@+id/read_cardTypeTV" | 
|             android:layout_width="wrap_content" | 
|             android:layout_height="wrap_content" | 
|             android:layout_centerHorizontal="true" | 
|             android:layout_centerVertical="true" | 
|             android:layout_gravity="center" | 
|             android:gravity="center" | 
|             android:textSize="30sp" | 
|             android:textStyle="bold" /> | 
|   | 
|         <TextView | 
|             android:id="@+id/read_cardDataTV" | 
|             android:layout_width="wrap_content" | 
|             android:layout_height="wrap_content" | 
|             android:layout_centerHorizontal="true" | 
|             android:layout_centerVertical="true" | 
|             android:layout_gravity="center" | 
|             android:layout_marginTop="20dp" | 
|             android:gravity="left" | 
|             android:textSize="20sp" | 
|             android:textStyle="bold" /> | 
|     </LinearLayout> | 
|   | 
|   | 
|     <LinearLayout | 
|         android:id="@+id/read_imgLL" | 
|         android:layout_width="match_parent" | 
|         android:layout_height="match_parent" | 
|         android:layout_below="@id/titleBar" | 
|         android:background="#ffffff" | 
|         android:orientation="vertical" | 
|         android:visibility="visible"> | 
|   | 
|         <TextView | 
|             android:layout_width="match_parent" | 
|             android:layout_height="wrap_content" | 
|             android:layout_below="@id/titleBar" | 
|             android:layout_marginLeft="20dp" | 
|             android:layout_marginTop="40dp" | 
|             android:layout_marginRight="20dp" | 
|             android:text="第一步:刷卡制作管理卡" | 
|             android:textColor="@color/red" | 
|             android:textSize="19sp" /> | 
|   | 
|         <TextView | 
|             android:id="@+id/number2" | 
|             android:layout_width="match_parent" | 
|             android:layout_height="wrap_content" | 
|             android:layout_below="@id/titleBar" | 
|             android:layout_marginLeft="20dp" | 
|             android:layout_marginTop="10dp" | 
|             android:layout_marginRight="20dp" | 
|             android:visibility="gone" | 
|             android:text="第二步:在控制器端刷卡,完成后点击下一步" | 
|             android:textColor="@color/red" | 
|             android:textSize="19sp" /> | 
|   | 
|         <TextView | 
|             android:id="@+id/number3" | 
|             android:layout_width="match_parent" | 
|             android:layout_height="wrap_content" | 
|             android:layout_below="@id/titleBar" | 
|             android:layout_marginLeft="20dp" | 
|             android:layout_marginTop="10dp" | 
|             android:layout_marginRight="20dp" | 
|             android:visibility="gone" | 
|             android:text="第三步:转换为用户卡" | 
|             android:textColor="@color/red" | 
|             android:textSize="19sp" /> | 
|   | 
|   | 
|         <ImageView | 
|             android:layout_width="match_parent" | 
|             android:layout_height="match_parent" | 
|             android:layout_below="@id/textView" | 
|             android:scaleType="fitCenter" | 
|             android:src="@mipmap/nfc_write" /> | 
|     </LinearLayout> | 
|   | 
|     <com.wang.avi.AVLoadingIndicatorView | 
|         android:id="@+id/avi" | 
|         style="@style/AVLoadingIndicatorView" | 
|         android:layout_width="80dp" | 
|         android:layout_height="80dp" | 
|         android:layout_centerHorizontal="true" | 
|         android:layout_centerVertical="true" | 
|         android:visibility="gone" | 
|         app:indicatorColor="@color/title_bg" | 
|         app:indicatorName="BallClipRotatePulseIndicator" /> | 
|   | 
|     <TextView | 
|         android:id="@+id/manager_next" | 
|         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> |