Files
WinBoLL/autonfc/src/main/res/layout/activity_nfc_interface.xml

47 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="20dp">
<!-- 状态显示 -->
<TextView
android:id="@+id/tv_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="等待NFC卡片..."
android:textSize="16sp"
android:textColor="#FF666666"/>
<EditText
android:id="@+id/et_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="输入要写入的NFC文本"
android:minHeight="50dp"
android:layout_marginTop="10dp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="写入NFC"
android:onClick="onWriteClick"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="读取结果"/>
<TextView
android:id="@+id/tv_result"
android:layout_width="match_parent"
android:layout_height="120dp"
android:background="#f5f5f5"
android:gravity="center"/>
</LinearLayout>