<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout 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/colorBackground">
|
|
<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"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/successContainer"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_marginStart="16dp"
|
android:layout_marginTop="24dp"
|
android:layout_marginEnd="16dp"
|
android:layout_marginBottom="24dp"
|
app:cardBackgroundColor="@android:color/white"
|
app:cardCornerRadius="12dp"
|
app:cardElevation="4dp"
|
app:layout_constraintBottom_toTopOf="@id/buttonContainer"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/titleBar">
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:fillViewport="true">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:padding="24dp"
|
android:minHeight="300dp">
|
|
<ImageView
|
android:id="@+id/successIcon"
|
android:layout_width="120dp"
|
android:layout_height="120dp"
|
android:scaleType="fitCenter"
|
android:src="@drawable/icon_success" />
|
|
<TextView
|
android:id="@+id/successTitle"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="20dp"
|
android:text="写卡成功"
|
android:textColor="#4CAF50"
|
android:textSize="22sp"
|
android:textStyle="bold" />
|
|
<TextView
|
android:id="@+id/successMessage"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="12dp"
|
android:gravity="center"
|
android:text="卡片信息已成功写入\n请妥善保管您的卡片"
|
android:textColor="#666666"
|
android:textSize="15sp"
|
android:lineSpacingExtra="4dp" />
|
|
</LinearLayout>
|
</ScrollView>
|
</androidx.cardview.widget.CardView>
|
|
<LinearLayout
|
android:id="@+id/buttonContainer"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:paddingStart="32dp"
|
android:paddingEnd="32dp"
|
android:paddingBottom="24dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent">
|
|
<Button
|
android:id="@+id/btnReprint"
|
android:layout_width="match_parent"
|
android:layout_height="44dp"
|
android:layout_marginBottom="12dp"
|
android:background="@drawable/bg_button_outline_selector"
|
android:text="再次打印"
|
android:textColor="#2196F3"
|
android:textSize="16sp"
|
android:textStyle="bold" />
|
|
<Button
|
android:id="@+id/btnConfirm"
|
android:layout_width="match_parent"
|
android:layout_height="48dp"
|
android:background="@drawable/bg_button_primary"
|
android:text="确定"
|
android:textColor="@android:color/white"
|
android:textSize="18sp"
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|