From 9f9b6253f6f303ab4d63b70fe7a4e1cfa16c9f5b Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Thu, 27 Nov 2025 17:37:09 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E5=AF=B9=E8=AF=9D=E7=8A=B6?= =?utf8?q?=E6=80=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../include/ThunderBirdDialogueView.h | 3 ++- .../thunderbird/src/ThunderBirdDialogueView.cpp | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h index 253158e93..2838f1ccc 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h @@ -133,7 +133,8 @@ namespace OHOS void UpdateDialogueText(const char *text); void AudioPlaybackEnd(); void Isband(bool); - + void dialogue_first(); + bool DialogueFirst{true}; enum : int16_t { THUNDERBIRD_DIALOGUEVIEW_SPEAKING = 0, // 说话中 THUNDERBIRD_DIALOGUEVIEW_LISTENING, // 聆听中 diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp index 662c15e88..21b088696 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp @@ -283,6 +283,22 @@ namespace OHOS micIcon->SetVisible(false); } } + + void ThunderBirdDialogueView::dialogue_first() + { + DialogueFirst = false; + if (TextLabel) + { + TextLabel->SetPosition(111, 64, 180, 42); + TextLabel->SetText("进入对话模式"); + TextLabel->SetAlign(TEXT_ALIGNMENT_LEFT, TEXT_ALIGNMENT_LEFT); + TextLabel->SetVisible(true); + } + //动效图标 + if (listenAnimator) { listenAnimator->SetVisible(true); listenAnimator->Stop(); } + if (listenIcon) { listenIcon->SetVisible(true); } + + } } -- 2.17.1