<?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="80dp"
|
app:cardBackgroundColor="@android:color/white"
|
app:cardCornerRadius="12dp"
|
app:cardElevation="4dp"
|
app:layout_constraintBottom_toTopOf="@id/btnConfirm"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/titleBar">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:padding="32dp">
|
|
<ImageView
|
android:id="@+id/successIcon"
|
android:layout_width="150dp"
|
android:layout_height="150dp"
|
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="24dp"
|
android:text="写卡成功"
|
android:textColor="#4CAF50"
|
android:textSize="24sp"
|
android:textStyle="bold" />
|
|
<TextView
|
android:id="@+id/successMessage"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="16dp"
|
android:gravity="center"
|
android:text="卡片信息已成功写入\n请妥善保管您的卡片"
|
android:textColor="#666666"
|
android:textSize="16sp"
|
android:lineSpacingExtra="4dp" />
|
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<Button
|
android:id="@+id/btnConfirm"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="32dp"
|
android:layout_marginEnd="32dp"
|
android:layout_marginBottom="24dp"
|
android:background="@drawable/bg_button_primary"
|
android:text="确定"
|
android:textColor="@android:color/white"
|
android:textSize="18sp"
|
android:textStyle="bold"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|