| <?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" /> | 
|   | 
|     <LinearLayout | 
|         android:id="@+id/recharge_read_LL" | 
|         android:layout_width="match_parent" | 
|         android:layout_height="match_parent" | 
|         android:layout_below="@+id/titleBar" | 
|         android:orientation="vertical" | 
|         android:visibility="visible"> | 
|   | 
|         <TextView | 
|             android:layout_width="match_parent" | 
|             android:layout_height="wrap_content" | 
|             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="center" | 
|             android:src="@mipmap/nfc_write" /> | 
|   | 
|   | 
|     </LinearLayout> | 
|   | 
|     <ScrollView | 
|         android:layout_width="match_parent" | 
|         android:layout_height="match_parent" | 
|         android:layout_above="@+id/recharge_registBtn" | 
|         android:layout_below="@+id/titleBar"> | 
|   | 
|         <LinearLayout | 
|             android:layout_width="match_parent" | 
|             android:layout_height="match_parent" | 
|             android:orientation="vertical"> | 
|   | 
|   | 
|             <LinearLayout | 
|                 android:id="@+id/recharge_text_LL" | 
|                 android:layout_width="match_parent" | 
|                 android:layout_height="match_parent" | 
|                 android:layout_below="@+id/titleBar" | 
|                 android:orientation="vertical" | 
|                 android:padding="20dp" | 
|                 android:visibility="gone"> | 
|   | 
|                 <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_statu" | 
|                         android:layout_width="match_parent" | 
|                         android:layout_height="wrap_content" | 
|                         android:textColor="@color/red" | 
|                         android:textSize="@dimen/new_card_size" /> | 
|   | 
|                 </LinearLayout> | 
|   | 
|                 <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/new_card_size" /> | 
|   | 
|                     <TextView | 
|                         android:id="@+id/userName" | 
|                         android:layout_width="match_parent" | 
|                         android:layout_height="wrap_content" | 
|                         android:textSize="@dimen/new_card_size" /> | 
|   | 
|                 </LinearLayout> | 
|   | 
|                 <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/new_card_size" /> | 
|   | 
|                 </LinearLayout> | 
|                 <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_userCode" | 
|                         android:layout_width="match_parent" | 
|                         android:layout_height="wrap_content" | 
|                         android:text="" | 
|                         android:textSize="@dimen/new_card_size" /> | 
|   | 
|                 </LinearLayout> | 
|                 <LinearLayout | 
|                     android:layout_width="match_parent" | 
|                     android:layout_height="wrap_content" | 
|                     android:layout_marginTop="15dp" | 
|                     android:orientation="horizontal" | 
|                     android:visibility="visible"> | 
|   | 
|                     <TextView | 
|   | 
|                         android:layout_width="wrap_content" | 
|                         android:layout_height="wrap_content" | 
|                         android:text="充值后剩余金额:" | 
|                         android:textSize="@dimen/text_size" /> | 
|   | 
|                     <TextView | 
|                         android:id="@+id/red_remainder_blance" | 
|                         android:layout_width="match_parent" | 
|                         android:layout_height="wrap_content" | 
|                         android:textSize="@dimen/new_card_size" /> | 
|   | 
|                 </LinearLayout> | 
|   | 
|                 <TextView | 
|                     android:id="@+id/red_balance_electric" | 
|                     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_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_rechargeElectric" | 
|                     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="gone" /> | 
|   | 
|                 <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="gone" /> | 
|   | 
|                 <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="gone" /> | 
|   | 
|   | 
|                 <TextView | 
|                     android:id="@+id/red_waterPrice" | 
|                     android:layout_width="match_parent" | 
|                     android:layout_height="wrap_content" | 
|                     android:layout_marginTop="15dp" | 
|                     android:text="每立方米水价格:" | 
|                     android:textSize="@dimen/text_size" | 
|                     android:visibility="gone" /> | 
|   | 
|                 <LinearLayout | 
|                     android:id="@+id/recharge_LL" | 
|                     android:layout_width="match_parent" | 
|                     android:layout_height="wrap_content" | 
|                     android:layout_marginTop="15dp" | 
|                     android:orientation="vertical"> | 
|   | 
|                     <TextView | 
|                         android:id="@+id/red_recharge_water" | 
|                         android:layout_width="match_parent" | 
|                         android:layout_height="wrap_content" | 
|                         android:layout_marginTop="15dp" | 
|                         android:text="充值水量:" | 
|                         android:textSize="@dimen/text_size" | 
|                         android:visibility="gone" /> | 
|   | 
|                     <LinearLayout | 
|                         android:layout_width="wrap_content" | 
|                         android:layout_height="match_parent" | 
|                         android:orientation="horizontal"> | 
|   | 
|   | 
|                         <TextView | 
|                             android:id="@+id/recharge_tx" | 
|                             android:layout_width="wrap_content" | 
|                             android:layout_height="wrap_content" | 
|                             android:text="金额(元):" | 
|                             android:textColor="@color/red" | 
|                             android:textSize="@dimen/new_card_size" /> | 
|   | 
|                         <EditText | 
|                             android:id="@+id/recharge_water" | 
|                             android:layout_width="match_parent" | 
|                             android:layout_height="wrap_content" | 
|                             android:hint="请输入充值的金额" | 
|                             android:inputType="numberDecimal" | 
|                             android:textSize="@dimen/new_card_size" /> | 
|   | 
|                     </LinearLayout> | 
|   | 
|   | 
|                 </LinearLayout> | 
|             </LinearLayout> | 
|         </LinearLayout> | 
|     </ScrollView> | 
|   | 
|     <TextView | 
|         android:id="@+id/recharge_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" | 
|         android:visibility="gone" /> | 
| </RelativeLayout> |