From f5180b600511d1871635bd364beb5bdd15f6ae88 Mon Sep 17 00:00:00 2001 From: zuojincheng <lf_zuo@163.com> Date: 星期三, 26 三月 2025 18:05:07 +0800 Subject: [PATCH] feat(nfc): 优化 NFC写卡功能并添加新方法- 在 BaseNfcWriteHelper 中添加了新的 writeData 方法,增加了 isConnect 参数 - 优化了 NativeNfcWriteHelper 中的 writeData 实现,支持选择性连接 NFC - 更新了 NfcWriteAdapter,支持新的 writeData 方法- 修改了 NfcWreatHelper 中的 writeData 方法,使用新的接口 - 优化了 NfcWreatActivity 中的写卡逻辑 --- qiheonlinelibrary/src/main/res/layout/activity_manager_read_qhl.xml | 26 +++----------------------- 1 files changed, 3 insertions(+), 23 deletions(-) diff --git a/qiheonlinelibrary/src/main/res/layout/activity_manager_read_qhl.xml b/qiheonlinelibrary/src/main/res/layout/activity_manager_read_qhl.xml index 8f0be95..f463916 100644 --- a/qiheonlinelibrary/src/main/res/layout/activity_manager_read_qhl.xml +++ b/qiheonlinelibrary/src/main/res/layout/activity_manager_read_qhl.xml @@ -10,7 +10,7 @@ android:layout_width="match_parent" android:layout_height="@dimen/dimen_title_height" android:background="@color/title_bar_bg" - app:centerText="鍒朵綔绠$悊鍗�" + app:centerText="璇诲彇绠$悊鍗�" app:leftImage="@mipmap/icon_back" /> <ScrollView @@ -170,31 +170,11 @@ android:layout_marginLeft="20dp" android:layout_marginTop="40dp" android:layout_marginRight="20dp" - android:text="绗竴姝ワ細鍒峰崱鍒朵綔绠$悊鍗�" + android:gravity="center" + android:text="璇峰湪鎺у埗鍣ㄥ埛鍗″悗鍦ㄦ鍒峰崱" android:textColor="@color/red" android:textSize="19sp" /> - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@id/titleBar" - android:layout_marginLeft="20dp" - android:layout_marginTop="10dp" - android:layout_marginRight="20dp" - android:text="绗簩姝ワ細鍦ㄦ帶鍒跺櫒绔埛鍗�" - android:textColor="@color/red" - android:textSize="19sp" /> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@id/titleBar" - android:layout_marginLeft="20dp" - android:layout_marginTop="10dp" - android:layout_marginRight="20dp" - android:text="绗笁姝ワ細鐐瑰嚮涓嬩竴姝ユ寜閽浆鎹负鐢ㄦ埛鍗�" - android:textColor="@color/red" - android:textSize="19sp" /> <ImageView android:layout_width="match_parent" -- Gitblit v1.8.0