New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| | | xmlns:tools="http://schemas.android.com/tools" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | xmlns:app="http://schemas.android.com/apk/res-auto"> |
| | | <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" |
| | | tools:ignore="MissingConstraints" /> |
| | | |
| | | |
| | | <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/titleBar"> |
| | | |
| | | <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> |
| | | |
| | | |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |