添加NFC数据读取功能,数据读取功能未测试。
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user