<?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="@color/base_green_bg">
|
|
<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_below="@+id/titleBar"
|
android:fillViewport="true">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<!-- 读卡提示区域 -->
|
<LinearLayout
|
android:id="@+id/card_read_LL"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:visibility="visible">
|
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginBottom="16dp"
|
app:cardCornerRadius="8dp"
|
app:cardElevation="2dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<TextView
|
android:id="@+id/text1"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="16dp"
|
android:gravity="center"
|
android:text="读卡操作"
|
android:textColor="@color/base_blue_bg"
|
android:textSize="@dimen/big_text_size"
|
android:textStyle="bold" />
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="20dp"
|
android:gravity="center"
|
android:text="请将卡贴在设备上进行读卡"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size"
|
android:textStyle="bold" />
|
|
<ImageView
|
android:layout_width="120dp"
|
android:layout_height="120dp"
|
android:layout_gravity="center"
|
android:layout_marginBottom="20dp"
|
android:scaleType="fitCenter"
|
android:src="@mipmap/nfc_write" />
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:text="请保持手持机和卡片不要移动"
|
android:textColor="#666666"
|
android:textSize="@dimen/new_card_size" />
|
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
</LinearLayout>
|
|
<!-- 卡片信息显示区域 -->
|
<LinearLayout
|
android:id="@+id/card_info_container"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:visibility="gone">
|
|
<!-- 卡内数据区域 -->
|
<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">
|
|
<!-- 持卡人 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="2dp"
|
android:background="#F8F9FA"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:padding="12dp">
|
|
<TextView
|
android:layout_width="105dp"
|
android:layout_height="wrap_content"
|
android:text="持卡人:"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/tv_user_name"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="--"
|
android:textColor="#666666"
|
android:textSize="@dimen/text_size" />
|
</LinearLayout>
|
|
<!-- 卡号 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="2dp"
|
android:background="#FFFFFF"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:padding="12dp">
|
|
<TextView
|
android:layout_width="105dp"
|
android:layout_height="wrap_content"
|
android:text="卡地址:"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/tv_card_number"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="--"
|
android:textColor="#666666"
|
android:textSize="@dimen/text_size" />
|
</LinearLayout>
|
<!-- 卡片状态 -->
|
<LinearLayout
|
android:id="@+id/ll_card_status"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="2dp"
|
android:background="#FFFFFF"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:padding="12dp"
|
android:visibility="visible">
|
|
<TextView
|
android:layout_width="105dp"
|
android:layout_height="wrap_content"
|
android:text="卡片状态:"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/tv_card_status"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="正常"
|
android:textColor="#4CAF50"
|
android:textSize="@dimen/text_size" />
|
</LinearLayout>
|
<!-- 卡片类型 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="2dp"
|
android:background="#F8F9FA"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:padding="12dp">
|
|
<TextView
|
android:layout_width="105dp"
|
android:layout_height="wrap_content"
|
android:text="卡类型:"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/tv_card_type"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="--"
|
android:textColor="#666666"
|
android:textSize="@dimen/text_size" />
|
</LinearLayout>
|
|
<!-- 卡内余额 -->
|
<LinearLayout
|
android:id="@+id/ll_card_balance"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="2dp"
|
android:background="#FFFFFF"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:padding="12dp"
|
android:visibility="visible">
|
|
<TextView
|
android:layout_width="105dp"
|
android:layout_height="wrap_content"
|
android:text="卡余额:"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/tv_card_balance"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="0.00元"
|
android:textColor="#FF6B35"
|
android:textSize="@dimen/text_size"
|
android:textStyle="bold" />
|
</LinearLayout>
|
|
<!-- 卡编号 -->
|
<LinearLayout
|
android:id="@+id/ll_user_number"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="2dp"
|
android:background="#F8F9FA"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:padding="12dp"
|
android:visibility="visible">
|
|
<TextView
|
android:layout_width="105dp"
|
android:layout_height="wrap_content"
|
android:text="卡编号:"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/tv_user_number"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="--"
|
android:textColor="#666666"
|
android:textSize="@dimen/text_size" />
|
</LinearLayout>
|
|
<!-- 手机号 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="2dp"
|
android:background="#FFFFFF"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:padding="12dp">
|
|
<TextView
|
android:layout_width="105dp"
|
android:layout_height="wrap_content"
|
android:text="手机号:"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/tv_phone"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="--"
|
android:textColor="#666666"
|
android:textSize="@dimen/text_size" />
|
</LinearLayout>
|
|
<!-- 身份证号 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="2dp"
|
android:background="#F8F9FA"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:padding="12dp">
|
|
<TextView
|
android:layout_width="105dp"
|
android:layout_height="wrap_content"
|
android:text="身份证号:"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/tv_id_card"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="--"
|
android:textColor="#666666"
|
android:textSize="@dimen/text_size" />
|
</LinearLayout>
|
|
|
<!-- 最后使用时间 -->
|
<LinearLayout
|
android:id="@+id/ll_last_use_time"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="2dp"
|
android:background="#F8F9FA"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:padding="12dp"
|
android:visibility="visible">
|
|
<TextView
|
android:layout_width="105dp"
|
android:layout_height="wrap_content"
|
android:text="最后充值时间:"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/tv_last_use_time"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="--"
|
android:textColor="#666666"
|
android:textSize="@dimen/text_size" />
|
</LinearLayout>
|
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
</ScrollView>
|
|
</RelativeLayout>
|