<?xml version="1.0" encoding="utf-8"?>
|
<androidx.cardview.widget.CardView 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="wrap_content"
|
android:layout_marginHorizontal="12dp"
|
android:layout_marginVertical="6dp"
|
app:cardCornerRadius="8dp"
|
app:cardElevation="2dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="12dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:id="@+id/tv_card_number"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="卡号:"
|
android:textColor="@color/black"
|
android:textSize="16sp"
|
android:textStyle="bold" />
|
|
<TextView
|
android:id="@+id/tv_card_status"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="状态:"
|
android:textColor="@color/red"
|
android:textSize="14sp" />
|
</LinearLayout>
|
|
<TextView
|
android:id="@+id/tv_client_name"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="4dp"
|
android:text="姓名:"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
<TextView
|
android:id="@+id/tv_card_type"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="4dp"
|
android:text="卡类型:"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
<TextView
|
android:id="@+id/tv_client_num"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="4dp"
|
android:text="客户编号:"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
|
<TextView
|
android:id="@+id/tv_id_card"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="4dp"
|
android:text="身份证:"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:visibility="visible" />
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="4dp"
|
android:orientation="horizontal">
|
|
<TextView
|
android:id="@+id/tv_phone"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
|
android:text="电话:"
|
android:layout_weight="1"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
<TextView
|
android:id="@+id/tv_card_balance"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="余额:元"
|
android:textColor="@color/black"
|
android:textSize="14sp"
|
android:textStyle="bold" />
|
</LinearLayout>
|
|
<!-- 分割线 -->
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:layout_marginTop="12dp"
|
android:layout_marginBottom="8dp"
|
android:background="@color/line_color" />
|
|
<!-- 操作按钮区域 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:gravity="end">
|
|
<Button
|
android:id="@+id/btn_unloss"
|
android:layout_width="wrap_content"
|
android:layout_height="36dp"
|
android:layout_marginEnd="8dp"
|
android:background="@drawable/button_green_bg"
|
android:minWidth="80dp"
|
android:text="解除挂失"
|
android:textColor="@color/white"
|
android:textSize="12sp"
|
style="?android:attr/borderlessButtonStyle" />
|
|
<Button
|
android:id="@+id/btn_replace"
|
android:layout_width="wrap_content"
|
android:layout_height="36dp"
|
android:background="@drawable/button_blue_bg"
|
android:minWidth="80dp"
|
android:text="补卡"
|
android:textColor="@color/white"
|
android:textSize="12sp"
|
style="?android:attr/borderlessButtonStyle" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|