| <?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.recharge.view.TitleBar | 
|         android:id="@+id/titleBar" | 
|         android:layout_width="match_parent" | 
|         android:layout_height="@dimen/dimen_title_height" | 
|         android:background="@drawable/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_villageNum" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:text="设备序列号:" | 
|                 android:textSize="@dimen/text_size" /> | 
|   | 
|             <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" /> | 
|   | 
| <!--            <TextView--> | 
| <!--                android:id="@+id/red_userNum"--> | 
| <!--                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_morny" | 
|                 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_total_morny"--> | 
| <!--                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_electric"--> | 
| <!--                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_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_statu" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="wrap_content" | 
|                 android:layout_marginTop="15dp" | 
|                 android:text="状    态:" | 
|                 android:textSize="@dimen/text_size" /> | 
|   | 
|         </LinearLayout> | 
|   | 
|     </ScrollView> | 
|   | 
|   | 
|     <TextView | 
|         android:id="@+id/read_sysLL" | 
|         android:layout_width="wrap_content" | 
|         android:layout_height="match_parent" | 
|         android:layout_centerHorizontal="true" | 
|         android:layout_centerVertical="true" | 
|         android:layout_gravity="center" | 
|         android:gravity="center" | 
|         android:text="当前为管理卡" | 
|         android:textSize="30sp" | 
|         android:textStyle="bold" | 
|         android:visibility="gone" /> | 
|   | 
|   | 
|     <TextView | 
|         android:id="@+id/read_cleanLL" | 
|         android:layout_width="wrap_content" | 
|         android:layout_height="match_parent" | 
|         android:layout_centerHorizontal="true" | 
|         android:layout_centerVertical="true" | 
|         android:layout_gravity="center" | 
|         android:gravity="center" | 
|         android:text="当前为清零卡" | 
|         android:textSize="30sp" | 
|         android:textStyle="bold" | 
|         android:visibility="gone" /> | 
|   | 
|   | 
|     <TextView | 
|         android:id="@+id/read_initLL" | 
|         android:layout_width="wrap_content" | 
|         android:layout_height="match_parent" | 
|         android:layout_centerHorizontal="true" | 
|         android:layout_centerVertical="true" | 
|         android:layout_gravity="center" | 
|         android:gravity="center" | 
|         android:text="当前为出厂设置卡" | 
|         android:textSize="30sp" | 
|         android:textStyle="bold" | 
|         android:visibility="gone" /> | 
|   | 
|   | 
|     <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"> | 
|   | 
|         <TextView | 
|             android:layout_width="match_parent" | 
|             android:layout_height="wrap_content" | 
|             android:layout_below="@id/titleBar" | 
|             android:layout_marginTop="20dp" | 
|             android:gravity="center" | 
|             android:text="请将卡贴在设备上进行读卡" | 
|             android:textSize="@dimen/text_size" /> | 
|   | 
|   | 
|         <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/textData" | 
|         android:layout_width="match_parent" | 
|         android:layout_height="wrap_content" | 
|         /> | 
|   | 
|   | 
|   | 
| </RelativeLayout> |