<?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:id="@+id/activity_main" 
 | 
    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/cardInfoContainer" 
 | 
        android:layout_width="match_parent" 
 | 
        android:layout_height="wrap_content" 
 | 
        android:layout_marginStart="16dp" 
 | 
        android:layout_marginTop="24dp" 
 | 
        android:layout_marginEnd="16dp" 
 | 
        app:cardBackgroundColor="@android:color/white" 
 | 
        app:cardCornerRadius="12dp" 
 | 
        app:cardElevation="4dp" 
 | 
        android:visibility="visible" 
 | 
        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="wrap_content" 
 | 
            android:orientation="vertical" 
 | 
            android:padding="16dp"> 
 | 
  
 | 
            <TextView 
 | 
                android:layout_width="match_parent" 
 | 
                android:layout_height="wrap_content" 
 | 
                android:gravity="center" 
 | 
                android:text="写卡信息" 
 | 
                android:textColor="@color/title_bar_text" 
 | 
                android:textSize="18sp" 
 | 
                android:textStyle="bold" /> 
 | 
  
 | 
            <View 
 | 
                android:layout_width="match_parent" 
 | 
                android:layout_height="1dp" 
 | 
                android:layout_marginTop="8dp" 
 | 
                android:layout_marginBottom="8dp" 
 | 
                android:background="#E0E0E0" /> 
 | 
  
 | 
            <TextView 
 | 
                android:id="@+id/cardData" 
 | 
                android:layout_width="match_parent" 
 | 
                android:layout_height="wrap_content" 
 | 
                android:gravity="center" 
 | 
                android:padding="8dp" 
 | 
                android:textColor="#333333" 
 | 
                android:textSize="@dimen/text_size" /> 
 | 
        </LinearLayout> 
 | 
    </androidx.cardview.widget.CardView> 
 | 
  
 | 
    <androidx.cardview.widget.CardView 
 | 
        android:id="@+id/nfcContainer" 
 | 
        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_toBottomOf="parent" 
 | 
        app:layout_constraintEnd_toEndOf="parent" 
 | 
        app:layout_constraintStart_toStartOf="parent" 
 | 
        app:layout_constraintTop_toBottomOf="@id/cardInfoContainer"> 
 | 
  
 | 
        <LinearLayout 
 | 
            android:layout_width="match_parent" 
 | 
            android:layout_height="match_parent" 
 | 
            android:gravity="center" 
 | 
            android:orientation="vertical" 
 | 
            android:padding="16dp"> 
 | 
  
 | 
            <TextView 
 | 
                android:id="@+id/textView" 
 | 
                android:layout_width="match_parent" 
 | 
                android:layout_height="wrap_content" 
 | 
                android:gravity="center" 
 | 
                android:text="请将卡贴在设备上进行写卡" 
 | 
                android:textColor="#333333" 
 | 
                android:textSize="18sp" 
 | 
                android:textStyle="bold" /> 
 | 
  
 | 
            <ImageView 
 | 
                android:id="@+id/nfcImageView" 
 | 
                android:layout_width="200dp" 
 | 
                android:layout_height="200dp" 
 | 
                android:layout_marginTop="24dp" 
 | 
                android:scaleType="fitCenter" 
 | 
                android:src="@mipmap/nfc_write" /> 
 | 
  
 | 
            <TextView 
 | 
                android:layout_width="match_parent" 
 | 
                android:layout_height="wrap_content" 
 | 
                android:layout_marginTop="16dp" 
 | 
                android:gravity="center" 
 | 
                android:text="请保持手机和卡片不要移动" 
 | 
                android:textColor="#666666" 
 | 
                android:textSize="14sp" /> 
 | 
        </LinearLayout> 
 | 
    </androidx.cardview.widget.CardView> 
 | 
  
 | 
    <com.wang.avi.AVLoadingIndicatorView 
 | 
        android:id="@+id/avi" 
 | 
        style="@style/AVLoadingIndicatorView" 
 | 
        android:layout_width="80dp" 
 | 
        android:layout_height="80dp" 
 | 
        android:visibility="gone" 
 | 
        app:indicatorColor="@color/title_bg" 
 | 
        app:indicatorName="BallClipRotatePulseIndicator" 
 | 
        app:layout_constraintBottom_toBottomOf="parent" 
 | 
        app:layout_constraintEnd_toEndOf="parent" 
 | 
        app:layout_constraintStart_toStartOf="parent" 
 | 
        app:layout_constraintTop_toTopOf="parent" /> 
 | 
</androidx.constraintlayout.widget.ConstraintLayout> 
 |