添加NFC数据读取功能,数据读取功能未测试。

This commit is contained in:
2026-03-14 13:53:53 +08:00
parent 37173c7c3a
commit 94bfb3e878
3 changed files with 72 additions and 17 deletions

View File

@@ -19,6 +19,13 @@
android:layout_height="wrap_content"
android:text="写入测试数据"/>
<!-- 新增主动读取NFC按钮 -->
<Button
android:id="@+id/btn_read_nfc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="点击后靠近NFC卡片读取数据"/>
<TextView
android:id="@+id/tv_nfc_data"
android:layout_width="match_parent"
@@ -28,7 +35,6 @@
android:layout_marginTop="10dp"
android:text="数据"/>
</LinearLayout>