基本构造NFC数据接口与写入功能。NFC数据写入验证未测试。

This commit is contained in:
2026-03-14 13:49:08 +08:00
parent bc913fd7f0
commit 37173c7c3a
8 changed files with 455 additions and 7 deletions

View File

@@ -0,0 +1,34 @@
<?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="16dp">
<TextView
android:id="@+id/tv_nfc_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="16sp"
android:text="状态:未启动"/>
<Button
android:id="@+id/btn_write_nfc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="写入测试数据"/>
<TextView
android:id="@+id/tv_nfc_data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#f0f0f0"
android:padding="10dp"
android:layout_marginTop="10dp"
android:text="数据"/>
</LinearLayout>